Try to make crypo_test more likely to pass.
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Oct 2020 22:26:25 +0000 (00:26 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Oct 2020 16:51:11 +0000 (18:51 +0200)
test/crypto_test.cc

index d96deafa4e023258afea0be39fe678a447db2792..e1069b42fa155f63c1a9daffeb9642e3afaad157 100644 (file)
@@ -38,6 +38,7 @@ BOOST_AUTO_TEST_CASE (crypto_test)
        BOOST_REQUIRE_EQUAL (dcpomatic::decrypt (ciphertext, key, iv), "Can you see any fish?");
 
        key.data()[5]++;
        BOOST_REQUIRE_EQUAL (dcpomatic::decrypt (ciphertext, key, iv), "Can you see any fish?");
 
        key.data()[5]++;
+       key.data()[6]++;
        BOOST_REQUIRE_THROW (dcpomatic::decrypt (ciphertext, key, iv), CryptoError);
 }
 
        BOOST_REQUIRE_THROW (dcpomatic::decrypt (ciphertext, key, iv), CryptoError);
 }