aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemcc1
-rw-r--r--tests/test_sanity.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index 1125a639..91da32f3 100755
--- a/emcc
+++ b/emcc
@@ -918,6 +918,7 @@ try:
shared.set_logging()
logging.debug('invocation: ' + ' '.join(sys.argv))
shared.apply_configuration() # reset config to pick up change
+ shared.check_sanity(force=True)
newargs[i] = ''
elif newargs[i].startswith('--shell-file'):
check_bad_eq(newargs[i])
diff --git a/tests/test_sanity.py b/tests/test_sanity.py
index 25858a8b..741bb748 100644
--- a/tests/test_sanity.py
+++ b/tests/test_sanity.py
@@ -319,6 +319,9 @@ fi
output = self.check_working(EMCC)
self.assertNotContained(SANITY_MESSAGE, output)
+ # also with -v
+ output = self.check_working([EMCC, '-v', path_from_root('tests', 'hello_world.c')], SANITY_MESSAGE)
+
# Make sure the test runner didn't do anything to the setup
output = self.check_working(EMCC)
self.assertNotContained(SANITY_MESSAGE, output)