Skip to content

Commit

Permalink
Remove tests within test exit
Browse files Browse the repository at this point in the history
  • Loading branch information
pzehner committed May 24, 2024
1 parent 7ffd184 commit fda7c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/unit_test/UnitTest_ScopeGuard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ TEST_F(scope_guard, create) {
{
Kokkos::ScopeGuard guard{};

ASSERT_TRUE(Kokkos::is_initialized());
ASSERT_FALSE(Kokkos::is_finalized());
if (!Kokkos::is_initialized()) std::exit(EXIT_FAILURE);
if (Kokkos::is_finalized()) std::exit(EXIT_FAILURE);
}

ASSERT_FALSE(Kokkos::is_initialized());
ASSERT_TRUE(Kokkos::is_finalized());
if (Kokkos::is_initialized()) std::exit(EXIT_FAILURE);
if (!Kokkos::is_finalized()) std::exit(EXIT_FAILURE);

std::exit(EXIT_SUCCESS);
},
Expand Down

0 comments on commit fda7c03

Please sign in to comment.