summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-09-19 22:13:36 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-09-20 09:48:29 +0000
commite0f90c3060f542885d834314a9097353d0cb2ba2 (patch)
tree375ff16a94c6bb03dcef4d085027f53458d67c01 /sc
parentb7c41f1d1fcabc8f4abc670d5a18546a117b540a (diff)
introduce new option --disable-cve-tests
Change-Id: I288638c4a70396ccb7354b20e901aa0c46ffe442 Reviewed-on: https://gerrit.libreoffice.org/653 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/CppunitTest_sc_filters_test.mk6
-rw-r--r--sc/qa/unit/filters-test.cxx2
2 files changed, 8 insertions, 0 deletions
diff --git a/sc/CppunitTest_sc_filters_test.mk b/sc/CppunitTest_sc_filters_test.mk
index 37a4b14aaa97..ef47365af404 100644
--- a/sc/CppunitTest_sc_filters_test.mk
+++ b/sc/CppunitTest_sc_filters_test.mk
@@ -31,6 +31,12 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sc_filters_test, \
sc/qa/unit/filters-test \
))
+ifeq ($(DISABLE_CVE_TESTS),TRUE)
+$(eval $(call gb_CppunitTest_add_defs,sc_filters_test,\
+ -DDISABLE_CVE_TESTS \
+))
+endif
+
$(eval $(call gb_CppunitTest_use_externals,sc_filters_test, \
mdds_headers \
orcus \
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index dc6df6dab188..a7b050d24b71 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -196,6 +196,7 @@ void ScFiltersTest::createCSVPath(const rtl::OUString& aFileBase, rtl::OUString&
void ScFiltersTest::testCVEs()
{
+#ifndef DISABLE_CVE_TESTS
testDir(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Quattro Pro 6.0")),
getURLFromSrc("/sc/qa/unit/data/qpro/"), rtl::OUString());
@@ -207,6 +208,7 @@ void ScFiltersTest::testCVEs()
testDir(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MS Excel 97")),
getURLFromSrc("/sc/qa/unit/data/xls/"), rtl::OUString());
+#endif
}
#if TEST_BUG_FILES