diff options
author | alon@honor <none@none> | 2010-10-21 23:20:08 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-21 23:20:08 -0700 |
commit | d8bda252d5a1a43cb64a8f733fbf59c004017ea6 (patch) | |
tree | 363ab977cb891191e0d9b7e0bbc4e8318df527f4 /tests/runner.py | |
parent | f57cfb99176a2ec61db5b91aeed1f3ff6a719634 (diff) |
gettimeofday(), and more stuff in Runtime
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7356ad34..54836ee7 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -737,10 +737,11 @@ if 'benchmark' not in sys.argv: ''' self.do_test(src, '*cheez: 0+24*\nQ85*') - def test_atexit(self): + def test_stdlibs(self): src = ''' #include <stdio.h> #include <stdlib.h> + #include <sys/time.h> void clean() { @@ -748,6 +749,9 @@ if 'benchmark' not in sys.argv: } int main() { + timeval t; + gettimeofday(&t, NULL); + printf("*%d,%d\\n", int(t.tv_sec), int(t.tv_usec)); atexit(clean); return 0; } |