[llvm-commits] [llvm] r173123 - /llvm/trunk/unittests/Support/ErrorOrTest.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Mon Jan 21 20:02:41 PST 2013
Author: chapuni
Date: Mon Jan 21 22:02:41 2013
New Revision: 173123
URL: http://llvm.org/viewvc/llvm-project?rev=173123&view=rev
Log:
ErrorOrTest.cpp: Check existence of EXPECT_DEBUG_DEATH. It is not always available.
Modified:
llvm/trunk/unittests/Support/ErrorOrTest.cpp
Modified: llvm/trunk/unittests/Support/ErrorOrTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ErrorOrTest.cpp?rev=173123&r1=173122&r2=173123&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ErrorOrTest.cpp (original)
+++ llvm/trunk/unittests/Support/ErrorOrTest.cpp Mon Jan 21 22:02:41 2013
@@ -28,7 +28,9 @@
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
More information about the llvm-commits
mailing list