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
/
fprintf.c
diff --git
a/functions/stdio/fprintf.c
b/functions/stdio/fprintf.c
index b7bd43a19ec7e8c748b9dc9b4f11ab4439ceb99b..bac19bce869ef3972ad83845847f1f32590c0a45 100644
(file)
--- a/
functions/stdio/fprintf.c
+++ b/
functions/stdio/fprintf.c
@@
-36,11
+36,9
@@
int fprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCL
int main( void )
{
FILE * target;
int main( void )
{
FILE * target;
- TESTCASE( ( target =
fopen( "testing/testfile", "wb+"
) ) != NULL );
+ TESTCASE( ( target =
tmpfile(
) ) != NULL );
#include "printf_testcases.incl"
TESTCASE( fclose( target ) == 0 );
#include "printf_testcases.incl"
TESTCASE( fclose( target ) == 0 );
-#include "fprintf_reftest.incl"
- TESTCASE( remove( "testing/testfile" ) == 0 );
return TEST_RESULTS;
}
return TEST_RESULTS;
}