projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further streamlined testing.
[fw/pdclib]
/
functions
/
stdio
/
vfprintf.c
diff --git
a/functions/stdio/vfprintf.c
b/functions/stdio/vfprintf.c
index 6ff56ff905a3adb538816dc85b0ac39af55ed3b6..2b216db9ff71b19dec53384c3ab92d2f5b762bbd 100644
(file)
--- a/
functions/stdio/vfprintf.c
+++ b/
functions/stdio/vfprintf.c
@@
-64,13
+64,16
@@
static int testprintf( FILE * stream, size_t n, const char * format, ... )
return i;
}
return i;
}
+#define TESTCASE_SPRINTF( x )
+
int main( void )
{
FILE * buffer;
int main( void )
{
FILE * buffer;
- TESTCASE( ( buffer = fopen(
"testfile"
, "wb" ) ) != NULL );
+ TESTCASE( ( buffer = fopen(
testfile
, "wb" ) ) != NULL );
#include "printf_testcases.incl"
TESTCASE( fclose( buffer ) == 0 );
#include "fprintf_reftest.incl"
#include "printf_testcases.incl"
TESTCASE( fclose( buffer ) == 0 );
#include "fprintf_reftest.incl"
+ TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}
return TEST_RESULTS;
}