Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ for local handling in on off
webcpp.lane cobalt : $(.cobalt) : native emscripten ;
webcpp.lane cobalt_asyncify : $(.cobalt-emscripten) : emscripten ;

# Cobalt's suspensions leave half of Asyncify's stack in each build a
# program can get, whatever variant the lane builds: debug, compiled and
# linked at -O0, the deepest, and release, at -O3.
.asyncify-stack-debug = <variant>debug ;
.asyncify-stack-release = <variant>release ;
.asyncify-stack-optimized_link = <variant>release <linkflags>-O3 ;
for local build in debug release optimized_link
for local build in debug release
{
for local handling in on off
{
Expand Down
19 changes: 13 additions & 6 deletions test/no_exceptions/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@
if expected_abort:
assert result.returncode != 0, result.stdout + result.stderr
assert 'after move\n' not in result.stderr, result.stderr
# Emscripten's release libc++ omits the native verbose-abort text.
# The direct exception-ptr control identifies the same runtime path.
diagnostic = ('RuntimeError: Aborted(native code called abort())' if
program.endswith('.js') else
'make_exception_ptr was called in -fno-exceptions mode')
assert diagnostic in result.stderr, result.stderr
if program.endswith('.js'):
# Emscripten's abort prints the line Aborted(<reason>) before it
# throws. A link with ASSERTIONS (debug, at -O0) gives native
# code's abort() its reason; a link without them (release, at
# -O3) gives it none, and omits libc++'s verbose-abort text. No
# other abort of Emscripten's runtime has an empty reason, and a
# trap, or an abort for another reason, prints another line.
native_abort = {'Aborted(native code called abort())', 'Aborted()'}
assert native_abort & set(result.stderr.splitlines()), result.stderr
else:
# The direct exception-ptr control identifies the same runtime path.
assert ('make_exception_ptr was called in -fno-exceptions mode'
in result.stderr), result.stderr
verdict = 'known-libc++-abort'
else:
assert result.returncode == 0, result.stdout + result.stderr
Expand Down
Loading