Use abort() instead of a null dereference.

Clang deletes these because they're invalid. It's pretty awful of
clang to do this, but this should be abort() anyway.

Change-Id: I89423ff2c4d08db82077e56b726549e3783d38e1
This commit is contained in:
Dan Albert 2015-06-11 11:04:52 -07:00
parent 5e6082fd56
commit 5b57857c7f

View file

@ -16,6 +16,8 @@
#include <gtest/gtest.h>
#include <stdlib.h>
#include "TestExtensions.h"
namespace android {
@ -37,9 +39,7 @@ class DISABLED_ForkedTest : public ::testing::Test {
// intentionally fail
TEST_F(DISABLED_ForkedTest, FailCrash) {
TEST_EXTENSION_FORKING_INIT;
//intentionally crash
*(int*)0 = 0xDEADBEEF;
abort();
}
TEST_F(DISABLED_ForkedTest, SucceedNormal) {