MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / btest_exit

Method btest_exit

test/browser_common.py:946–957  ·  view source on GitHub ↗

Special case of `btest` that reports its result solely via exiting with a given result code. In this case we set EXIT_RUNTIME and we don't need to provide the REPORT_RESULT macro to the C code.

(self, filename, assert_returncode=0, *args, **kwargs)

Source from the content-addressed store, hash-verified

944 utils.delete_file('browser_reporting.js')
945
946 def btest_exit(self, filename, assert_returncode=0, *args, **kwargs):
947 """Special case of `btest` that reports its result solely via exiting with a given result code.
948
949 In this case we set EXIT_RUNTIME and we don't need to provide the
950 REPORT_RESULT macro to the C code.
951 """
952 self.set_setting('EXIT_RUNTIME')
953 assert 'reporting' not in kwargs
954 assert 'expected' not in kwargs
955 kwargs['reporting'] = Reporting.JS_ONLY
956 kwargs['expected'] = 'exit:%d' % assert_returncode
957 return self.btest(filename, *args, **kwargs)
958
959 def btest(self, filename, expected=None,
960 post_build=None,

Calls 2

btestMethod · 0.95
set_settingMethod · 0.80