aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runner.py3
-rw-r--r--tests/time/output2.txt38
2 files changed, 40 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 25b30965..c5cd56e1 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -3201,7 +3201,8 @@ def process(filename):
# XXX Not sure what the right output is here. Looks like the test started failing with daylight savings changes. Modified it to pass again.
src = open(path_from_root('tests', 'time', 'src.c'), 'r').read()
expected = open(path_from_root('tests', 'time', 'output.txt'), 'r').read()
- self.do_run(src, expected,
+ expected2 = open(path_from_root('tests', 'time', 'output2.txt'), 'r').read()
+ self.do_run(src, [expected, expected2],
extra_emscripten_args=['-H', 'libc/time.h'])
#extra_emscripten_args=['-H', 'libc/fcntl.h,libc/sys/unistd.h,poll.h,libc/math.h,libc/langinfo.h,libc/time.h'])
diff --git a/tests/time/output2.txt b/tests/time/output2.txt
new file mode 100644
index 00000000..7ef34821
--- /dev/null
+++ b/tests/time/output2.txt
@@ -0,0 +1,38 @@
+stime: -1
+tzname[0] set: 1
+tzname[1] set: 1
+sec: 43
+min: 22
+hour: 3
+day: 25
+mon: 11
+year: 102
+wday: 3
+yday: 358
+dst: 0
+off: 0
+zone: GMT
+timegm <-> gmtime: 0
+old year: 102
+new year: 70
+old year again: 102
+localtime timezone: 0
+localtime daylight: 1
+localtime tzname: 1
+localtime <-> mktime: 1
+localtime_r(1): 1
+localtime_r(2): 1
+time: 1
+difftime+: 268848637.000000
+difftime-: -268848637.000000
+1854 days: 365
+2000 days: 366
+2001 days: 365
+2004 days: 366
+asctime: Wed Dec 25 03:22:43 2002
+old asctime: Wed Dec 25 03:22:43 2002
+new asctime_r: Sat Jul 2 19:33:20 2011
+old asctime again: Wed Dec 25 03:22:43 2002
+clock(start): 1
+clock(end): 1
+ctime: 0