Skip to content

Commit

Permalink
GHI #32 Use KilledByAbortPredicateType in impl too
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Jul 13, 2024
1 parent 91d48fa commit d7aae6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/include/test/common/death.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ namespace test
/// passes an exit code.
#if defined(GTEST_OS_WINDOWS) || defined(GTEST_OS_FUCHSIA)
#define PATOMIC_GTEST_HAS_KILLED_BY_SIGNAL 0
using KilledBySignalType = testing::ExitedWithCode;
using KilledByAbortPredicateType = testing::ExitedWithCode;
#else
#define PATOMIC_GTEST_HAS_KILLED_BY_SIGNAL 1
using KilledBySignalType = testing::KilledBySignal;
using KilledByAbortPredicateType = testing::KilledBySignal;
#endif


Expand All @@ -27,7 +27,7 @@ using KilledBySignalType = testing::KilledBySignal;
///
/// @note
/// Predicate is callable with the signature bool()(int).
KilledBySignalType
KilledByAbortPredicateType
KilledByAbort();


Expand Down
2 changes: 1 addition & 1 deletion test/src/common/death.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace test
{


testing::ExitedWithCode
KilledByAbortPredicateType
KilledByAbort()
{
#if PATOMIC_GTEST_HAS_KILLED_BY_SIGNAL
Expand Down

0 comments on commit d7aae6c

Please sign in to comment.