summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/source/bootstrapfixture.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index 137a284c53f3..a980731741bb 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -150,7 +150,9 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
aValidator = "officeotron ";
}
else
- return;
+ {
+ aValidator = "odfvalidator ";
+ }
utl::TempFile aOutput;
aOutput.EnableKillingFile();
@@ -184,6 +186,14 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
CPPUNIT_ASSERT_EQUAL_MESSAGE(aMsg.getStr(), sal_Int32(0), nErrors);
}
}
+ else if( eFormat == test::ODF && !aContentOUString.isEmpty() )
+ {
+ if( aContentOUString.indexOf("Error") != -1 )
+ {
+ SAL_WARN("test", aContentOUString);
+ CPPUNIT_FAIL("validation errors during export");
+ }
+ }
#endif
}