diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-02 15:48:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-02 16:14:36 +0000 |
commit | c48b928acab9f226ad5ad816fe773c21051431e8 (patch) | |
tree | 39acb3c1d55a731135472578b7eff098b17db1ba /svl | |
parent | 305b90c9999781f24421845c9e896563f5183b7e (diff) |
iss is unordered_multimap, so can't rely on order
Change-Id: Ief399439bdde047dfbaef43f2262e6212db8bd7e
Diffstat (limited to 'svl')
-rw-r--r-- | svl/qa/unit/items/test_IndexedStyleSheets.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svl/qa/unit/items/test_IndexedStyleSheets.cxx b/svl/qa/unit/items/test_IndexedStyleSheets.cxx index 2b9f539c5958..a764e9143a95 100644 --- a/svl/qa/unit/items/test_IndexedStyleSheets.cxx +++ b/svl/qa/unit/items/test_IndexedStyleSheets.cxx @@ -133,6 +133,7 @@ void IndexedStyleSheetsTest::StyleSheetsCanBeRetrievedByTheirName() std::vector<unsigned> r = iss.FindPositionsByName(name1); CPPUNIT_ASSERT_EQUAL_MESSAGE("Two style sheets are found by 'name1'", 2u, static_cast<unsigned>(r.size())); + std::sort (r.begin(), r.end()); CPPUNIT_ASSERT_EQUAL(0u, r.at(0)); CPPUNIT_ASSERT_EQUAL(2u, r.at(1)); |