diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-07 18:53:17 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-07 18:56:25 +0100 |
commit | a95c02314202b41bfac5555b68f97018adca31d4 (patch) | |
tree | b27009aa941d8386aa389e103d79b037d3825f5e /xmlsecurity/qa | |
parent | 47cf950fe83da10df44fda8f31ed73569d1232da (diff) |
xmlsecurity: check that osl::File::copy actually succeeds
... which it doesn't, currently.
Change-Id: I0280a11006afb08b95ff643e8b999b4e5a733d2d
Diffstat (limited to 'xmlsecurity/qa')
-rw-r--r-- | xmlsecurity/qa/unit/signing/signing.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx index 1894cb9cec62..466c86768ab1 100644 --- a/xmlsecurity/qa/unit/signing/signing.cxx +++ b/xmlsecurity/qa/unit/signing/signing.cxx @@ -208,7 +208,8 @@ void SigningTest::testOOXMLAppend() utl::TempFile aTempFile; aTempFile.EnableKillingFile(); OUString aURL = aTempFile.GetURL(); - osl::File::copy(getURLFromSrc(DATA_DIRECTORY) + "partial.docx", aURL); + CPPUNIT_ASSERT_EQUAL(osl::File::RC::E_None, + osl::File::copy(getURLFromSrc(DATA_DIRECTORY) + "partial.docx", aURL)); // Load the test document as a storage and read its single signature. DocumentSignatureManager aManager(mxComponentContext, SignatureModeDocumentContent); CPPUNIT_ASSERT(aManager.maSignatureHelper.Init()); @@ -263,7 +264,8 @@ void SigningTest::testOOXMLRemoveAll() utl::TempFile aTempFile; aTempFile.EnableKillingFile(); OUString aURL = aTempFile.GetURL(); - osl::File::copy(getURLFromSrc(DATA_DIRECTORY) + "partial.docx", aURL); + CPPUNIT_ASSERT_EQUAL(osl::File::RC::E_None, + osl::File::copy(getURLFromSrc(DATA_DIRECTORY) + "partial.docx", aURL)); // Load the test document as a storage and read its single signature. DocumentSignatureManager aManager(mxComponentContext, SignatureModeDocumentContent); CPPUNIT_ASSERT(aManager.maSignatureHelper.Init()); |