projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improper test code handling uncovered by Owen at osdev.org
[fw/pdclib]
/
functions
/
_PDCLIB
/
prepwrite.c
diff --git
a/functions/_PDCLIB/prepwrite.c
b/functions/_PDCLIB/prepwrite.c
index 774aeb21b29722917a3b18d2a41f9e75d75f7c5a..c5a4c127543b40b14f016c60b3ac0fd04272538d 100644
(file)
--- a/
functions/_PDCLIB/prepwrite.c
+++ b/
functions/_PDCLIB/prepwrite.c
@@
-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
+