summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-11-25 17:24:39 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-25 17:32:36 +0100
commit1581b1fc3ac82a7bd62df968226e98604a4ca52d (patch)
treea68b48436ea54617d01ba8b0159b7e8ad1c3307d
parent1366e61fcbdd63bb87a9709338ad66bd0fd525ab (diff)
CppunitTest_sw_ooxmlexport: make it possible to use ..._TEST_ONLY with -Werror
Change-Id: I451f81495a8e8535c8e0194198602ee5732164c6
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 78b1256823be..42f250c12fc7 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -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