projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switched to tmpfile() where appropriate.
[fw/pdclib]
/
functions
/
stdio
/
vfprintf.c
diff --git
a/functions/stdio/vfprintf.c
b/functions/stdio/vfprintf.c
index 7ab3167499a8d2f57360d01a1b3a458abf4b477d..44c86358783e6b13b3ee13d6ef39e8c71c8add0f 100644
(file)
--- a/
functions/stdio/vfprintf.c
+++ b/
functions/stdio/vfprintf.c
@@
-69,10
+69,9
@@
static int testprintf( FILE * stream, const char * format, ... )
int main( void )
{
FILE * target;
int main( void )
{
FILE * target;
- TESTCASE( ( target =
fopen( testfile, "wb+"
) ) != NULL );
+ TESTCASE( ( target =
tmpfile(
) ) != NULL );
#include "printf_testcases.incl"
TESTCASE( fclose( target ) == 0 );
#include "printf_testcases.incl"
TESTCASE( fclose( target ) == 0 );
- TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}
return TEST_RESULTS;
}