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
/
prepread.c
diff --git
a/functions/_PDCLIB/prepread.c
b/functions/_PDCLIB/prepread.c
index 53a2976dd403bd5fc11308f68a22a758473c062d..ef2f70ed72bcda6962745d0b1d053a7c0000e7bf 100644
(file)
--- a/
functions/_PDCLIB/prepread.c
+++ b/
functions/_PDCLIB/prepread.c
@@
-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
+