[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - writerfilter/CppunitTest_writerfilter_rtftok.mk writerfilter/qa
Caolán McNamara
caolanm at redhat.com
Tue May 26 02:08:17 PDT 2015
writerfilter/CppunitTest_writerfilter_rtftok.mk | 6 ++++++
writerfilter/qa/cppunittests/rtftok/testrtftok.cxx | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit fbe4e09bd1c97585ff98084788e1e5066773a1ce
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue May 26 10:06:19 2015 +0100
need DISABLE_CVE_TESTS for these tests under windows too
Change-Id: I92de8fa6a48dac9a0a09e6ebda4af9b8e4c3a1d7
(cherry picked from commit a30886283f50f4e05f70175d110a1c55e02037f0)
diff --git a/writerfilter/CppunitTest_writerfilter_rtftok.mk b/writerfilter/CppunitTest_writerfilter_rtftok.mk
index bb19800..1bdeba7 100644
--- a/writerfilter/CppunitTest_writerfilter_rtftok.mk
+++ b/writerfilter/CppunitTest_writerfilter_rtftok.mk
@@ -17,6 +17,12 @@ $(eval $(call gb_CppunitTest_add_exception_objects,writerfilter_rtftok, \
writerfilter/qa/cppunittests/rtftok/testrtftok \
))
+ifeq ($(DISABLE_CVE_TESTS),TRUE)
+$(eval $(call gb_CppunitTest_add_defs,writerfilter_rtftok,\
+ -DDISABLE_CVE_TESTS \
+))
+endif
+
$(eval $(call gb_CppunitTest_use_libraries,writerfilter_rtftok, \
comphelper \
cppu \
diff --git a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
index 3733767..dd9e474 100644
--- a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
@@ -78,9 +78,11 @@ bool RtfTest::load(const OUString&,
void RtfTest::test()
{
+#ifndef DISABLE_CVE_TESTS
testDir(OUString(),
getURLFromSrc("/writerfilter/qa/cppunittests/rtftok/data/"),
OUString());
+#endif
}
CPPUNIT_TEST_SUITE_REGISTRATION(RtfTest);
More information about the Libreoffice-commits
mailing list