aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a3235e6a..452ace89 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1988,6 +1988,8 @@ if 'benchmark' not in sys.argv:
// Test looked up function.
func_fptr = (FUNCTYPE*) dlsym(lib_handle, "_Z4funciPFvvE");
+ // Load twice to test cache.
+ func_fptr = (FUNCTYPE*) dlsym(lib_handle, "_Z4funciPFvvE");
if (func_fptr == NULL) {
printf("Could not find func.\\n");
return 1;
@@ -2396,8 +2398,8 @@ if 'benchmark' not in sys.argv:
).replace(
'// {{POST_RUN_ADDITIONS}}',
'''
- print('first changed: ' + (TEST_F1.timestamp.getTime() == 1200000000000));
- print('second changed: ' + (TEST_F2.timestamp.getTime() == 1200000000000));
+ print('first changed: ' + (TEST_F1.timestamp == 1200000000000));
+ print('second changed: ' + (TEST_F2.timestamp == 1200000000000));
'''
)
open(filename, 'w').write(src)