Skip to content

Commit

Permalink
Reset flag to avoid assert when re-creating a os::System
Browse files Browse the repository at this point in the history
This is useful for multiple tests running in the same process
creating/destroying a os::System instance several times.
  • Loading branch information
dacap committed Dec 7, 2024
1 parent ab00537 commit 7069e75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os/common/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ SystemRef System::make()

CommonSystem::CommonSystem()
{
g_is_being_destroyed = false;
}

CommonSystem::~CommonSystem()
Expand Down

0 comments on commit 7069e75

Please sign in to comment.