Skip to content

Commit fb9f1b9

Browse files
committed
partially update other.test_emterpreter; #3263
1 parent 6fd3fc9 commit fb9f1b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_other.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4402,9 +4402,10 @@ def do_js_test(name, source, args, output):
44024402

44034403
do_emcc_test('fannkuch.cpp', ['5'], 'Pfannkuchen(5) = 7.', ['-g2'])
44044404
normal = open('a.out.js').read()
4405+
shutil.copyfile('a.out.js', 'last.js')
44054406
do_emcc_test('fannkuch.cpp', ['5'], 'Pfannkuchen(5) = 7.', ['-g2', '--profiling'])
44064407
profiling = open('a.out.js').read()
4407-
assert len(profiling) > len(normal) + 500, [len(profiling), len(normal)] # should be much larger
4408+
assert len(profiling) > len(normal) + 300, [len(profiling), len(normal)] # should be much larger
44084409

44094410
print 'blacklisting'
44104411

@@ -4562,7 +4563,7 @@ def do_log_test(source, expected, func):
45624563
post = post.split('\n')[0]
45634564
seen = int(post)
45644565
print ' seen', seen, ', expected ', expected, type(seen), type(expected)
4565-
assert expected == seen or seen in expected, ['expect', expected, 'but see', seen]
4566+
assert expected == seen or (seen in expected if type(expected) in [list, tuple] else False), ['expect', expected, 'but see', seen]
45664567

45674568
do_log_test(path_from_root('tests', 'primes.cpp'), 86, 'main')
45684569
do_log_test(path_from_root('tests', 'fannkuch.cpp'), 230, 'fannkuch_worker')

0 commit comments

Comments
 (0)