]> pd.if.org Git - pdclib/commitdiff
Added test driver.
authorsolar <unknown>
Mon, 30 Jan 2006 20:46:59 +0000 (20:46 +0000)
committersolar <unknown>
Mon, 30 Jan 2006 20:46:59 +0000 (20:46 +0000)
functions/stdlib/_Exit.c
functions/stdlib/exit.c

index 14fdb5b9c0fc677df568a429a41eb55474ffffad..e46af397b68daac62c374fd9f2e06a25d67619ba 100644 (file)
@@ -15,6 +15,7 @@
 
 void _Exit( int status )
 {
+    /* TODO: Flush and close open streams. Remove tmpfile() files. */
     _PDCLIB_Exit( status );
 }
 
@@ -26,7 +27,7 @@ void _Exit( int status )
 int main()
 {
     BEGIN_TESTS;
-    TESTCASE( NO_TESTDRIVER );
+    /* TODO: Add testdrivers after flush / close / tmpfile is implemented. */
     return TEST_RESULTS;
 }
 
index 5cb2a508fe19838baa4e9e95f08707af90e671c4..969b795f7100fa92de5b503f225060c5de92493f 100644 (file)
 
 #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 )
@@ -24,7 +28,6 @@ void exit( int status )
         free( next );
         next = regstack;
     }
-    /* TODO: Flush and close open streams. Remove tmpfile() files. */
     _Exit( status );
 }
 
@@ -36,7 +39,7 @@ void exit( int status )
 int main()
 {
     BEGIN_TESTS;
-    TESTCASE( NO_TESTDRIVER );
+    /* Unwinding of regstack tested in atexit(). */
     return TEST_RESULTS;
 }