X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffopen.c;fp=functions%2Fstdio%2Ffopen.c;h=1e9bd41358a60aa48484325bf9afe7333a4663e9;hb=188eee8e94ce6e968e0791bae1c7682dafe9ec9c;hp=2abb66407bb9bb7e80eb53dcecd0740148a2697e;hpb=d2c64b8390799b64a24609e689ef87dec9b74dea;p=pdclib 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; }