diff ui/tests/binverifytest.cpp @ 774:44fa5de02b52

(issue43) Finalize and verify binary verification for linux.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 11 Jul 2014 16:20:27 +0200
parents be30d50bc4f0
children b1df9621c89c
line wrap: on
line diff
--- a/ui/tests/binverifytest.cpp	Thu Jul 10 19:16:21 2014 +0200
+++ b/ui/tests/binverifytest.cpp	Fri Jul 11 16:20:27 2014 +0200
@@ -47,12 +47,15 @@
                 strlen("fakeinst-invalid" EXE_SUFFIX)));
 }
 
-/* Check that a signature with a different (valid) certificate is not validated */
+#ifdef Q_OS_WIN
+/* Check that a signature with a different (valid) certificate is not validated
+ * on Linux only the key is checked not the certificate */
 void BinVerifyTest::testOtherCert()
 {
     QVERIFY(VerifyInvalidCertificate == verify_binary ("fakeinst-other-cert" EXE_SUFFIX,
                 strlen("fakeinst-other-cert" EXE_SUFFIX)));
 }
+#endif
 
 /* Check that no signature is not validated */
 void BinVerifyTest::testNoSignature()

http://wald.intevation.org/projects/trustbridge/