diff options
Diffstat (limited to 'xmloff/qa')
-rw-r--r-- | xmloff/qa/unit/uxmloff.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmloff/qa/unit/uxmloff.cxx b/xmloff/qa/unit/uxmloff.cxx index a0bd4306226b..8dfa5021ed99 100644 --- a/xmloff/qa/unit/uxmloff.cxx +++ b/xmloff/qa/unit/uxmloff.cxx @@ -75,7 +75,11 @@ void Test::testAutoStylePool() OUString aName = xPool->Add( XML_STYLE_FAMILY_TEXT_PARAGRAPH, "", aProperties ); // not that interesting but worth checking - CPPUNIT_ASSERT_MESSAGE( "style / naming changed", aName == "Bob1" ); + bool bHack = (getenv("LIBO_ONEWAY_STABLE_ODF_EXPORT") != NULL); + if (bHack) + CPPUNIT_ASSERT_MESSAGE( "style / naming changed", aName == "Bob" ); + else + CPPUNIT_ASSERT_MESSAGE( "style / naming changed", aName == "Bob1" ); // find ourselves again: OUString aSameName = xPool->Find( XML_STYLE_FAMILY_TEXT_PARAGRAPH, "", aProperties ); |