aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkripken <alonzakai@gmail.com>2011-08-05 20:49:16 -0700
committerkripken <alonzakai@gmail.com>2011-08-05 20:49:16 -0700
commitcca5278aff73c0c593baa36320daa812550e4911 (patch)
tree8c937405d2b2789775b7d0b3fe3ec9ff27b90521 /tests
parentb37f0ce62244d16cb216b1f125d7dc76c90c066e (diff)
parent869dd298eb0a61b882688cb9e79c4df729b64a54 (diff)
Merge pull request #63 from max99x/master
Various fixes resulting form Python testing
Diffstat (limited to 'tests')
-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)