diff options
| author | William M. Brack <wbrack@src.gnome.org> | 2004-06-27 02:07:51 +0000 |
|---|---|---|
| committer | William M. Brack <wbrack@src.gnome.org> | 2004-06-27 02:07:51 +0000 |
| commit | 3403adde326013574de71ff667c6d75d8d62656b (patch) | |
| tree | ebe952da2dc587e35960ff797292a0e997bb26f2 /testHTML.c | |
| parent | f20fbf70b2d0c37482c189c9c52887cc7cf91d37 (diff) | |
| download | android_external_libxml2-3403adde326013574de71ff667c6d75d8d62656b.tar.gz android_external_libxml2-3403adde326013574de71ff667c6d75d8d62656b.tar.bz2 android_external_libxml2-3403adde326013574de71ff667c6d75d8d62656b.zip | |
new files for running regression tests under Python. Not yet complete, but
* regressions.py, regressions.xml: new files for running
regression tests under Python. Not yet complete, but
should provide good testing under both Linux and Windows.
* testHTML.c, testSAX.c, xmllint.c: changed the 'fopen' used
for --push testing to include the 'rb' param when compiled
under Windows.
Diffstat (limited to 'testHTML.c')
| -rw-r--r-- | testHTML.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -627,7 +627,11 @@ parseSAXFile(char *filename) { if (push) { FILE *f; +#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) + f = fopen(filename, "rb"); +#else f = fopen(filename, "r"); +#endif if (f != NULL) { int res, size = 3; char chars[4096]; @@ -653,7 +657,11 @@ parseSAXFile(char *filename) { fclose(f); } if (!noout) { - f = fopen(filename, "r"); +#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) + f = fopen(filename, "rb"); +#else + f = fopen(filename, "r"); +#endif if (f != NULL) { int res, size = 3; char chars[4096]; @@ -713,7 +721,11 @@ parseAndPrintFile(char *filename) { if (push) { FILE *f; +#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) + f = fopen(filename, "rb"); +#else f = fopen(filename, "r"); +#endif if (f != NULL) { int res, size = 3; char chars[4096]; |
