X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fopen.c;h=f661da5bd170ab2be05ec333f1982a25abf3c3e9;hb=2b793d7f6e3a8e37229e761ef4c92961bd0f686a;hp=fc02790826c1ee913212b7670ab1f01aecbb5597;hpb=b1fc26afebd4d557ff89a44bc21767a8704c3809;p=pdclib diff --git a/platform/example/functions/_PDCLIB/open.c b/platform/example/functions/_PDCLIB/open.c index fc02790..f661da5 100644 --- a/platform/example/functions/_PDCLIB/open.c +++ b/platform/example/functions/_PDCLIB/open.c @@ -102,6 +102,7 @@ int _PDCLIB_open( char const * const filename, unsigned int mode ) int main( void ) { +#ifndef REGTEST /* This testdriver assumes POSIX, i.e. _PDCLIB_fd_t being int and being incremented by one on each successful open. */ @@ -157,6 +158,7 @@ int main( void ) TESTCASE( _PDCLIB_close( fh ) == 0 ); /* Cleaning up. */ TESTCASE( remove( testfile ) == 0 ); +#endif return TEST_RESULTS; }