update sanity.test_emcc_caching

This commit is contained in:
Alon Zakai 2014-08-07 14:18:12 -07:00
Родитель d2edca1ea6
Коммит 83e625ba33
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -417,8 +417,8 @@ fi
# Building a file that doesn't need cached stuff should not trigger cache generation
output = self.do([compiler, path_from_root('tests', 'hello_world.cpp')])
assert INCLUDING_MESSAGE.replace('X', 'libc') not in output
assert BUILDING_MESSAGE.replace('X', 'libc') not in output
assert INCLUDING_MESSAGE.replace('X', 'libcextra') not in output
assert BUILDING_MESSAGE.replace('X', 'libcextra') not in output
self.assertContained('hello, world!', run_js('a.out.js'))
try_delete('a.out.js')
@ -426,8 +426,8 @@ fi
dcebc_name = os.path.join(TEMP_DIR, 'emscripten_temp', 'emcc-1-linktime.bc')
ll_names = [os.path.join(TEMP_DIR, 'emscripten_temp', 'emcc-X-ll.ll').replace('X', str(x)) for x in range(2,5)]
# Building a file that *does* need dlmalloc *should* trigger cache generation, but only the first time
for filename, libname in [('hello_malloc.cpp', 'libc'), ('hello_libcxx.cpp', 'libcxx')]:
# Building a file that *does* need something *should* trigger cache generation, but only the first time
for filename, libname in [('hello_libcxx.cpp', 'libcxx')]:
for i in range(3):
print filename, libname, i
self.clear()