CppunitTest_sw_ooxmlexport: make it possible to use ..._TEST_ONLY with -Werror

Change-Id: I451f81495a8e8535c8e0194198602ee5732164c6
This commit is contained in:
Miklos Vajna 2013-11-25 17:24:39 +01:00
parent 1366e61fcb
commit 1581b1fc3a

View File

@ -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())));
}
#if 1
#define DECLARE_OOXMLEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
// For testing during development of a tast, you want to use
// DECLARE_OOXMLEXPORT_TEST_ONLY, and change the below to #if 1
// Of course, don't forget to set back to #if 0 when you are done :-)
#if 0
// DECLARE_OOXMLEXPORT_TEST_ONLY, and change the above to #if 0
// Of course, don't forget to set back to #if 1 when you are done :-)
#else
#define DECLARE_OOXMLEXPORT_TEST_ONLY(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
#undef DECLARE_OOXMLEXPORT_TEST