void _Exit( int status )
{
+ /* TODO: Flush and close open streams. Remove tmpfile() files. */
_PDCLIB_Exit( status );
}
int main()
{
BEGIN_TESTS;
- TESTCASE( NO_TESTDRIVER );
+ /* TODO: Add testdrivers after flush / close / tmpfile is implemented. */
return TEST_RESULTS;
}
#ifndef REGTEST
+/* TODO - "except that a function is called after any previously registered
+ functions that had already been called at the time it was registered.
+*/
+
struct _PDCLIB_exitfunc_t * regstack = NULL;
void exit( int status )
free( next );
next = regstack;
}
- /* TODO: Flush and close open streams. Remove tmpfile() files. */
_Exit( status );
}
int main()
{
BEGIN_TESTS;
- TESTCASE( NO_TESTDRIVER );
+ /* Unwinding of regstack tested in atexit(). */
return TEST_RESULTS;
}