aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py18
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'''