forked from OSchip/llvm-project
ErrorOrTest.cpp: Check existence of EXPECT_DEBUG_DEATH. It is not always available.
llvm-svn: 173123
This commit is contained in:
parent
f593b10d04
commit
08e028e194
|
@ -28,7 +28,9 @@ TEST(ErrorOr, SimpleValue) {
|
|||
a = t2();
|
||||
EXPECT_FALSE(a);
|
||||
EXPECT_EQ(errc::invalid_argument, a);
|
||||
#ifdef EXPECT_DEBUG_DEATH
|
||||
EXPECT_DEBUG_DEATH(*a, "Cannot get value when an error exists");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if LLVM_HAS_CXX11_STDLIB
|
||||
|
|
Loading…
Reference in New Issue