]> pd.if.org Git - pdclib/commitdiff
Improper test code handling uncovered by Owen at osdev.org
authorsolar <unknown>
Sun, 4 Apr 2010 12:15:51 +0000 (12:15 +0000)
committersolar <unknown>
Sun, 4 Apr 2010 12:15:51 +0000 (12:15 +0000)
functions/_PDCLIB/Readme.txt [new file with mode: 0755]
functions/_PDCLIB/prepread.c
functions/_PDCLIB/prepwrite.c

diff --git a/functions/_PDCLIB/Readme.txt b/functions/_PDCLIB/Readme.txt
new file mode 100755 (executable)
index 0000000..797af9d
--- /dev/null
@@ -0,0 +1,13 @@
+$Id$
+
+This directory holds various "internals" of PDCLib:
+
+- definitions of helper functions not specified by the standard (hidden in the
+  _PDCLIB_* namespace);
+
+- definitions of data objects, both internal (like digits.c) and specified by
+  the standard (errno.c);
+
+- test drivers for functionality that does not have its own implementation
+  file to put the test driver in.
+
index 53a2976dd403bd5fc11308f68a22a758473c062d..ef2f70ed72bcda6962745d0b1d053a7c0000e7bf 100644 (file)
@@ -32,3 +32,14 @@ int _PDCLIB_prepread( struct _PDCLIB_file_t * stream )
     }
 }
 
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    /* Testing covered by ftell.c */
+    return TEST_RESULTS;
+}
+
+#endif
+
index 774aeb21b29722917a3b18d2a41f9e75d75f7c5a..c5a4c127543b40b14f016c60b3ac0fd04272538d 100644 (file)
@@ -22,3 +22,14 @@ int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream )
     return 0;
 }
 
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    /* Testing covered by ftell.c */
+    return TEST_RESULTS;
+}
+
+#endif
+