projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8492096
)
ErrorOrTest.cpp: Check existence of EXPECT_DEBUG_DEATH. It is not always available.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 22 Jan 2013 04:02:41 +0000
(
04:02
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 22 Jan 2013 04:02:41 +0000
(
04:02
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173123
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/ErrorOrTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/ErrorOrTest.cpp
b/unittests/Support/ErrorOrTest.cpp
index 3181b4fc4bd2da89fb684e3afa3adb959d43217c..b30895cdbd4161fb8660a150bc4492cdc7fe5278 100644
(file)
--- a/
unittests/Support/ErrorOrTest.cpp
+++ b/
unittests/Support/ErrorOrTest.cpp
@@
-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