[llvm-commits] [llvm] r98846 - /llvm/trunk/unittests/ADT/SmallVectorTest.cpp
Dan Gohman
gohman at apple.com
Thu Mar 18 11:47:50 PDT 2010
Author: djg
Date: Thu Mar 18 13:47:50 2010
New Revision: 98846
URL: http://llvm.org/viewvc/llvm-project?rev=98846&view=rev
Log:
Make this test more lenient; with SmallVector now using actually
aligned storage, the capacity may be more than what is explicitly
requested.
Modified:
llvm/trunk/unittests/ADT/SmallVectorTest.cpp
Modified: llvm/trunk/unittests/ADT/SmallVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/SmallVectorTest.cpp?rev=98846&r1=98845&r2=98846&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/SmallVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/SmallVectorTest.cpp Thu Mar 18 13:47:50 2010
@@ -384,7 +384,7 @@
// Direct array access.
TEST_F(SmallVectorTest, DirectVectorTest) {
EXPECT_EQ(0u, theVector.size());
- EXPECT_EQ(4u, theVector.capacity());
+ EXPECT_LE(4u, theVector.capacity());
EXPECT_EQ(0, Constructable::getNumConstructorCalls());
theVector.end()[0] = 1;
theVector.end()[1] = 2;
More information about the llvm-commits
mailing list