X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=c3ecfbc373b26718be4d43024f17aedb801d9c3e;hb=9507e63e4b8558c8a3337521853f80f72f83a689;hp=e096e70d56db7a139841b10e36225de1cb0b6a37;hpb=12e17136786afb1775c9dc946cbe41f5e230c24a;p=pdclib.old diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index e096e70..c3ecfbc 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* _PDCLIB_exit( int ) This file is part of the Public Domain C Library (PDCLib). @@ -26,11 +24,15 @@ void _PDCLIB_Exit( int status ) #endif #ifdef TEST +/* TODO: Work around the following undef */ +#undef SEEK_SET #include <_PDCLIB_test.h> int main( void ) { - TESTCASE( NO_TESTDRIVER ); + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); return TEST_RESULTS; }