diff options
Diffstat (limited to 'tests/fortify_test.cpp')
-rw-r--r-- | tests/fortify_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp index 3ca0223b2..4abee67dc 100644 --- a/tests/fortify_test.cpp +++ b/tests/fortify_test.cpp @@ -15,7 +15,6 @@ */ #include <gtest/gtest.h> -#include "BionicDeathTest.h" #include <fcntl.h> #include <malloc.h> @@ -28,6 +27,8 @@ #include <sys/types.h> #include <time.h> +#include <android-base/silent_death_test.h> + #if __BIONIC__ #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY") #else @@ -40,7 +41,7 @@ #define DEATHTEST_EVALUATOR(name) DEATHTEST_PASTER(name) #define DEATHTEST DEATHTEST_EVALUATOR(TEST_NAME) -class DEATHTEST : public BionicDeathTest {}; +using DEATHTEST = SilentDeathTest; #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE == 2 struct foo { |