CppunitTest_sw_ooxmlexport: make it possible to use ..._TEST_ONLY with -Werror
Change-Id: I451f81495a8e8535c8e0194198602ee5732164c6
This commit is contained in:
@@ -166,12 +166,13 @@ OUString Test::getXPath(xmlDocPtr pXmlDoc, const OString& rXPath, const OString&
|
|||||||
return OUString::createFromAscii((const char*)xmlGetProp(pXmlNode, BAD_CAST(rAttribute.getStr())));
|
return OUString::createFromAscii((const char*)xmlGetProp(pXmlNode, BAD_CAST(rAttribute.getStr())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 1
|
||||||
#define DECLARE_OOXMLEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
|
#define DECLARE_OOXMLEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
|
||||||
|
|
||||||
// For testing during development of a tast, you want to use
|
// For testing during development of a tast, you want to use
|
||||||
// DECLARE_OOXMLEXPORT_TEST_ONLY, and change the below to #if 1
|
// DECLARE_OOXMLEXPORT_TEST_ONLY, and change the above to #if 0
|
||||||
// Of course, don't forget to set back to #if 0 when you are done :-)
|
// Of course, don't forget to set back to #if 1 when you are done :-)
|
||||||
#if 0
|
#else
|
||||||
#define DECLARE_OOXMLEXPORT_TEST_ONLY(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
|
#define DECLARE_OOXMLEXPORT_TEST_ONLY(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
|
||||||
|
|
||||||
#undef DECLARE_OOXMLEXPORT_TEST
|
#undef DECLARE_OOXMLEXPORT_TEST
|
||||||
|
Reference in New Issue
Block a user