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 | 5ffc72e7ced7b9187fdbbae4f0606c3b518fa34e (patch) | |
tree | f4235808d67167cc8e98e04379abbefc43b67260 /unittests | |
parent | d1ec31dca534a8816d7f2fcbfdc7ed4476b471d3 (diff) | |
download | external_llvm-5ffc72e7ced7b9187fdbbae4f0606c3b518fa34e.zip external_llvm-5ffc72e7ced7b9187fdbbae4f0606c3b518fa34e.tar.gz external_llvm-5ffc72e7ced7b9187fdbbae4f0606c3b518fa34e.tar.bz2 |
Make this test more lenient; with SmallVector now using actually
aligned storage, the capacity may be more than what is explicitly
requested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ADT/SmallVectorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp index 8a81796..d7dc3af 100644 --- a/unittests/ADT/SmallVectorTest.cpp +++ b/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; |