diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 14:04:50 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:35:57 +0200 |
commit | 80e7c536cd73ea1079d3d84b8b2e5403e8fff16a (patch) | |
tree | 6d0cb2584d1d746a746db55eb54290286dd59bdb /tests/test_core.py | |
parent | 49f31cb986114aff69e433ad0d7c515007a45ebc (diff) |
Use do_run_from_file() for test_timeb
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 49a4d094..35be9651 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2444,22 +2444,10 @@ The current type of b is: 9 def test_timeb(self): # Confirms they are called in reverse order - src = r''' - #include <stdio.h> - #include <assert.h> - #include <sys/timeb.h> + test_path = path_from_root('tests', 'core', 'test_timeb') + src, output = (test_path + s for s in ('.in', '.out')) - int main() { - timeb tb; - tb.timezone = 1; - printf("*%d\n", ftime(&tb)); - assert(tb.time > 10000); - assert(tb.timezone == 0); - assert(tb.dstflag == 0); - return 0; - } - ''' - self.do_run(src, '*0\n') + self.do_run_from_file(src, output) def test_time_c(self): src = r''' |