Switch to libbase SilentDeathTest.
Bug: http://b/184955378
Test: treehugger
Change-Id: Ie0849224074da92203340a741a86a24a4a3702c2
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp
index 3ca0223..4abee67 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 {