Skip to content

Commit 1946c55

Browse files
committed
Don't exit from atexit
1 parent 9523fef commit 1946c55

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/webgpu_basic_rendering.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ void RegisterCheckScopesAtExit() {
4242
// (Make sure there's a keepalive for everything the test has scopes for.)
4343
// Build with -sEXIT_RUNTIME to trace keepalives.
4444
assert(sScopeCount == 0);
45-
// Overwrite the old return code and exit now that everything is done.
46-
exit(0);
4745
});
4846
}
4947

@@ -430,7 +428,7 @@ int main() {
430428
GetDevice(run);
431429

432430
RegisterCheckScopesAtExit();
433-
// The test result will be reported when all scopes exit.
434-
// If that doesn't happen, this is the fallback return code.
435-
return 99;
431+
// This is the return code once all runtime-keepalives have completed
432+
// (unless something crashes before then).
433+
return 0;
436434
}

0 commit comments

Comments
 (0)