r5272 jmb - in /trunk/libparserutils/test: inputstream.c testrunner.pl

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 7 17:02:00 BST 2008


Author: jmb
Date: Sun Sep  7 11:01:59 2008
New Revision: 5272

URL: http://source.netsurf-browser.org?rev=5272&view=rev
Log:
Fix inputstream test on RO

Modified:
    trunk/libparserutils/test/inputstream.c
    trunk/libparserutils/test/testrunner.pl

Modified: trunk/libparserutils/test/inputstream.c
URL: http://source.netsurf-browser.org/trunk/libparserutils/test/inputstream.c?rev=5272&r1=5271&r2=5272&view=diff
==============================================================================
--- trunk/libparserutils/test/inputstream.c (original)
+++ trunk/libparserutils/test/inputstream.c Sun Sep  7 11:01:59 2008
@@ -8,6 +8,11 @@
 #include "utils/utils.h"
 
 #include "testutils.h"
+
+#ifdef __riscos
+const char * const __dynamic_da_name = "InputStream";
+int __dynamic_da_max_size = 128*1024*1024;
+#endif
 
 static void *myrealloc(void *ptr, size_t len, void *pw)
 {
@@ -32,10 +37,10 @@
 	}
 
 	/* Initialise library */
-	assert(parserutils_initialise(argv[1], myrealloc, NULL) == 
+	assert(parserutils_initialise(argv[1], myrealloc, NULL) ==
 			PARSERUTILS_OK);
 
-	stream = parserutils_inputstream_create("UTF-8", 1, NULL, 
+	stream = parserutils_inputstream_create("UTF-8", 1, NULL,
 			myrealloc, NULL);
 	assert(stream != NULL);
 
@@ -78,7 +83,7 @@
 			(const uint8_t *) "hello!!!",
 			SLEN("hello!!!")) == PARSERUTILS_OK);
 
-	assert(parserutils_inputstream_append(stream, NULL, 0) == 
+	assert(parserutils_inputstream_append(stream, NULL, 0) ==
 			PARSERUTILS_OK);
 
 	while ((c = parserutils_inputstream_peek(stream, 0, &clen)) !=

Modified: trunk/libparserutils/test/testrunner.pl
URL: http://source.netsurf-browser.org/trunk/libparserutils/test/testrunner.pl?rev=5272&r1=5271&r2=5272&view=diff
==============================================================================
--- trunk/libparserutils/test/testrunner.pl (original)
+++ trunk/libparserutils/test/testrunner.pl Sun Sep  7 11:01:59 2008
@@ -111,7 +111,7 @@
 				print "\n\nFailure detected: " .
 						"consult log file\n\n\n";
 
-				exit(1);
+#				exit(1);
 			}
                 }
 
@@ -153,7 +153,7 @@
 			print "\n\nFailure detected: " . 
 					"consult log file\n\n\n";
 
-			exit(1);
+#			exit(1);
 		}
 	}
 




More information about the netsurf-commits mailing list