diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 6 | ||||
-rw-r--r-- | tests/sauer/command.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index a24587da..5398327a 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -625,12 +625,12 @@ class T(unittest.TestCase): } int main() { - vary("*cheez: %d+%d*", 10, 24); + vary("*cheez: %d+%d*", 0, 24); // Also tests that '0' is not special as an array ender vary2('Q', "%d*", 85); return 0; } ''' - self.do_test(src, '*cheez: 10+24*\nQ85*') + self.do_test(src, '*cheez: 0+24*\nQ85*') def test_atexit(self): src = ''' @@ -688,7 +688,7 @@ class T(unittest.TestCase): # used, see Mozilla bug 593659. assert PARSER_ENGINE != SPIDERMONKEY_ENGINE # XXX RELOOP = 1 either is very very slow, or nonfinishing - self.do_test(path_from_root(['tests', 'sauer']), '*Temp is 32\n9*', main_file='command.cpp', emscripten_settings='{"RELOOP": 0}') + self.do_test(path_from_root(['tests', 'sauer']), '*Temp is 33\n9*', main_file='command.cpp', emscripten_settings='{"RELOOP": 0}') if __name__ == '__main__': if DEBUG: print "LLVM_GCC:", LLVM_GCC diff --git a/tests/sauer/command.cpp b/tests/sauer/command.cpp index 0b0afc68..7c39522f 100644 --- a/tests/sauer/command.cpp +++ b/tests/sauer/command.cpp @@ -1409,6 +1409,7 @@ int main() execute("somevar 9"); execute("temp = (+ 22 $somevar)"); execute("if (> $temp 30) [ temp = (+ $temp 1) ] [ temp = (* $temp 2) ]"); + execute("if (< $temp 30) [ temp = 0 ] [ temp = (+ $temp 1) ]"); execute("echo [*Temp is] $temp"); printf("%d*\n", getvar("somevar")); return 0; |