Fix libdcp test build on Windows.
authorCarl Hetherington <cth@carlh.net>
Mon, 3 Mar 2014 11:29:44 +0000 (11:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Mar 2014 11:29:44 +0000 (11:29 +0000)
test/encryption_test.cc

index 40003413c87e4b7b81ac256ced2a4fa9f39e9925..f08d48271e2a7c959a583c50b6039b45d3693726 100644 (file)
@@ -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 
 }