X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffopen.c;h=1e9bd41358a60aa48484325bf9afe7333a4663e9;hb=d6979bd57c335731f963a2811c8dea83a71f6c30;hp=2abb66407bb9bb7e80eb53dcecd0740148a2697e;hpb=4e4b49a7f39364583df853d6776c05c952666ddf;p=pdclib.old diff --git a/functions/stdio/fopen.c b/functions/stdio/fopen.c index 2abb664..1e9bd41 100644 --- a/functions/stdio/fopen.c +++ b/functions/stdio/fopen.c @@ -98,6 +98,7 @@ fail: int main( void ) { +#ifndef REGTEST TESTCASE( filemode( "r" ) == _PDCLIB_FREAD ); TESTCASE( filemode( "w" ) == _PDCLIB_FWRITE ); TESTCASE( filemode( "a" ) == _PDCLIB_FAPPEND ); @@ -122,6 +123,9 @@ int main( void ) TESTCASE( fopen( "testfile", "wr" ) == NULL ); /* Illegal mode */ TESTCASE( fopen( "testfile", "w" ) != NULL ); system( "rm testfile" ); +#else + puts( " NOTEST fopen() test driver is PDCLib-specific." ); +#endif return TEST_RESULTS; }