aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/runner.py2
-rw-r--r--tests/sauer/command.cpp11
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 20849681..35bae578 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -737,7 +737,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 33\n9*', main_file='command.cpp', emscripten_settings='{"RELOOP": 0}')
+ self.do_test(path_from_root(['tests', 'sauer']), '*\nTemp is 33\n9\n5\n*', 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 7c39522f..0f9dc196 100644
--- a/tests/sauer/command.cpp
+++ b/tests/sauer/command.cpp
@@ -1406,12 +1406,19 @@ VARP(somevar, 0, 0, 1024);
int main()
{
+ printf("*\n");
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"));
+ execute("echo [Temp is] $temp");
+ printf("%d\n", getvar("somevar"));
+ execute("x = 2");
+ execute("push x 5");
+ execute("push x 11");
+ execute("pop x");
+ execute("echo $x");
+ printf("*\n");
return 0;
}