aboutsummaryrefslogtreecommitdiffstats
path: root/testHTML.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-06-27 02:07:51 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-06-27 02:07:51 +0000
commit3403adde326013574de71ff667c6d75d8d62656b (patch)
treeebe952da2dc587e35960ff797292a0e997bb26f2 /testHTML.c
parentf20fbf70b2d0c37482c189c9c52887cc7cf91d37 (diff)
downloadandroid_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.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/testHTML.c b/testHTML.c
index c913bb38..c5da07ee 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -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];