aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-12 21:16:07 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-12 21:16:07 -0800
commitc9bdd33a113b4236c60b61abaec4e5e8a8b89028 (patch)
tree6ccf40ed4f4adb577faa4708e370fca03a528faf
parent4caba7e02ab1e3dcae31114fd119544c7e106e70 (diff)
don't print anything in exit(); fixes #1791
-rw-r--r--src/library.js1
-rw-r--r--tests/test_core.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js
index b25e48ed..48acf6ac 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1190,7 +1190,6 @@ LibraryManager.library = {
_exit: function(status) {
// void _exit(int status);
// http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
- Module.print('exit(' + status + ') called');
Module['exit'](status);
},
fork__deps: ['__setErrNo', '$ERRNO_CODES'],
diff --git a/tests/test_core.py b/tests/test_core.py
index 37179ff1..ecd3923e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -2908,7 +2908,7 @@ Exiting setjmp function, level: 0, prev_jmp: -1
''')
self.emcc_args += ['--pre-js', 'pre.js']
- self.do_run(src, '''reported\nexit(1) called\nExit Status: 1\npostRun\nok.\n''')
+ self.do_run(src, '''reported\nExit Status: 1\npostRun\nok.\n''')
def test_class(self):
src = '''
@@ -10517,7 +10517,7 @@ def process(filename):
Module.callMain();
''')
self.emcc_args += ['-s', 'INVOKE_RUN=0', '--post-js', 'post.js']
- self.do_run(src, 'hello, world!\nexit(118) called\ncleanup\nI see exit status: 118')
+ self.do_run(src, 'hello, world!\ncleanup\nI see exit status: 118')
def test_gc(self):
if self.emcc_args == None: return self.skip('needs ta2')