diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-18 18:47:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-18 18:47:50 +0000 |
commit | ed4c2eb7bf0fefa626c0ca0a3d6395438a1c9511 (patch) | |
tree | feffec3df91a058c0607f90507804cda68f47cfd /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | 3c7cde466e5047f32586573fa6d47388aeffc563 (diff) | |
download | bcm5719-llvm-ed4c2eb7bf0fefa626c0ca0a3d6395438a1c9511.tar.gz bcm5719-llvm-ed4c2eb7bf0fefa626c0ca0a3d6395438a1c9511.zip |
Make this test more lenient; with SmallVector now using actually
aligned storage, the capacity may be more than what is explicitly
requested.
llvm-svn: 98846
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/SmallVectorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp index 8a817966cb8..d7dc3af52fe 100644 --- a/llvm/unittests/ADT/SmallVectorTest.cpp +++ b/llvm/unittests/ADT/SmallVectorTest.cpp @@ -384,7 +384,7 @@ TEST_F(SmallVectorTest, ConstVectorTest) { // 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; |