DeathRegex.append("was deallocated.*DeallocateMemory[^2].*");
DeathRegex.append("was allocated.*AllocateMemory");
if (!Recoverable) {
- ASSERT_DEATH(DeallocateMemory2(GPA, Ptr), DeathRegex);
+ EXPECT_DEATH(DeallocateMemory2(GPA, Ptr), DeathRegex);
return;
}
DeathRegex.append("was allocated.*AllocateMemory");
if (!Recoverable) {
- ASSERT_DEATH(TouchMemory(Ptr), DeathRegex);
+ EXPECT_DEATH(TouchMemory(Ptr), DeathRegex);
return;
}
<< OutputBuffer;
}
+// Fuchsia does not support recoverable GWP-ASan.
+#if defined(__Fuchsia__)
+INSTANTIATE_TEST_SUITE_P(RecoverableAndNonRecoverableTests,
+ BacktraceGuardedPoolAllocatorDeathTest,
+ /* Recoverable */ testing::Values(false));
+#else
INSTANTIATE_TEST_SUITE_P(RecoverableTests, BacktraceGuardedPoolAllocator,
/* Recoverable */ testing::Values(true));
INSTANTIATE_TEST_SUITE_P(RecoverableAndNonRecoverableTests,
BacktraceGuardedPoolAllocatorDeathTest,
/* Recoverable */ testing::Bool());
+#endif