Fix some bionic death tests.
These were creating tombstones and spewing to the log.
You need TEST_F() rather than TEST(), and the modern style is apparently
to use `using` rather than an empty subclass.
Bug: http://b/180605583
Test: run tests, check logcat
Change-Id: I1e639d34854aeff6f042c24643b769a6bcfab877
diff --git a/tests/setjmp_test.cpp b/tests/setjmp_test.cpp
index 2476704..e6b6819 100644
--- a/tests/setjmp_test.cpp
+++ b/tests/setjmp_test.cpp
@@ -19,8 +19,11 @@
#include <setjmp.h>
#include <stdlib.h>
+#include "BionicDeathTest.h"
#include "SignalUtils.h"
+using setjmp_DeathTest = BionicDeathTest;
+
TEST(setjmp, setjmp_smoke) {
int value;
jmp_buf jb;
@@ -226,7 +229,7 @@
#define __JB_SIGFLAG 8
#endif
-TEST(setjmp, setjmp_cookie) {
+TEST_F(setjmp_DeathTest, setjmp_cookie) {
jmp_buf jb;
int value = setjmp(jb);
ASSERT_EQ(0, value);
@@ -241,7 +244,7 @@
EXPECT_DEATH(longjmp(jb, 0), "");
}
-TEST(setjmp, setjmp_cookie_checksum) {
+TEST_F(setjmp_DeathTest, setjmp_cookie_checksum) {
jmp_buf jb;
int value = setjmp(jb);