X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=testing%2F_PDCLIB_iotest.h;h=86d645a2d76a0730d6743cec71a5f77607598203;hb=70e37e1600a4ad7648c0909735ec72f13d043279;hp=4cdc6d5c7039a7176da29d37fc8e4a003bf0d992;hpb=5dffc6a444fc022d7cca6bff4033d471a757aa57;p=pdclib diff --git a/testing/_PDCLIB_iotest.h b/testing/_PDCLIB_iotest.h index 4cdc6d5..86d645a 100644 --- a/testing/_PDCLIB_iotest.h +++ b/testing/_PDCLIB_iotest.h @@ -32,9 +32,9 @@ #define PREP_RESULT_BUFFER #endif -#define PRINTF_TEST( expected_rc, expected_string, format, ... ) do { \ +#define PRINTF_TEST( expected_rc, expected_string, ... ) do { \ PREP_RESULT_BUFFER \ - int actual_rc = testprintf( target, format, __VA_ARGS__ ); \ + int actual_rc = testprintf( target, __VA_ARGS__ ); \ if ( ( actual_rc != expected_rc ) || \ ( RESULT_MISMATCH( target, expected_string ) ) ) \ { \ @@ -54,10 +54,10 @@ memcpy( source, input_string, sizeof( input_string ) ); #endif -#define SCANF_TEST( expected_rc, input_string, format, ... ) do { \ +#define SCANF_TEST( expected_rc, input_string, ... ) do { \ int actual_rc; \ PREPARE_SOURCE( input_string ); \ - actual_rc = testscanf( source, format, __VA_ARGS__ ); \ + actual_rc = testscanf( source, __VA_ARGS__ ); \ if ( actual_rc != expected_rc ) \ { \ ++TEST_RESULTS; \