diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-03 11:29:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-03 11:29:44 +0000 |
| commit | 0f7bfaeeeb722cda68777cdf9bed8f78ab73f3ef (patch) | |
| tree | 4196b9c7b695a50dc9eea32dec87c6aadf740f48 /test/encryption_test.cc | |
| parent | 447cc7ddec5ace7bb47df35192ef02e7c19bf9b3 (diff) | |
Fix libdcp test build on Windows.
Diffstat (limited to 'test/encryption_test.cc')
| -rw-r--r-- | test/encryption_test.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc index 40003413..f08d4827 100644 --- a/test/encryption_test.cc +++ b/test/encryption_test.cc @@ -116,8 +116,12 @@ BOOST_AUTO_TEST_CASE (encryption) "xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/bar.kdm.xml " "> build/test/xmllint.log 2>&1 < /dev/null" ); - + +#ifdef DCPOMATIC_POSIX BOOST_CHECK_EQUAL (WEXITSTATUS (r), 0); +#else + BOOST_CHECK_EQUAL (r, 0); +#endif r = system ("xmlsec1 verify " "--pubkey-cert-pem test/ref/crypt/leaf.signed.pem " @@ -127,5 +131,9 @@ BOOST_AUTO_TEST_CASE (encryption) "--id-attr:Id http://www.smpte-ra.org/schemas/430-3/2006/ETM:AuthenticatedPrivate " "build/test/bar.kdm.xml > build/test/xmlsec1.log 2>&1 < /dev/null"); +#ifdef DCPOMATIC_POSIX BOOST_CHECK_EQUAL (WEXITSTATUS (r), 0); +#else + BOOST_CHECK_EQUAL (r, 0); +#endif } |
