summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 1f3da6813..a2d165802 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -16,8 +16,11 @@ for asm in sorted(os.listdir('test')):
cmd += ['--imprecise']
wasm += '.imprecise'
if not opts:
- cmd += ['--no-opts']
wasm += '.no-opts'
+ if precise:
+ cmd += ['-O0'] # test that -O0 does nothing
+ else:
+ cmd += ['-O']
if precise and opts:
# test mem init importing
open('a.mem', 'wb').write(asm)