File 06_disable_broken_test.patch of Package ethereum-cpp

From: Adam Mizerski <adam@mizerski.pl>
Date: 2019-02-12 20:48:31
Upstream: yes
References: https://github.com/ethereum/aleth/issues/5474
Subject: disable broken test

Index: ethereum-cpp-1.8.0/test/unittests/libdevcrypto/crypto.cpp
===================================================================
--- ethereum-cpp-1.8.0.orig/test/unittests/libdevcrypto/crypto.cpp
+++ ethereum-cpp-1.8.0/test/unittests/libdevcrypto/crypto.cpp
@@ -755,21 +755,6 @@ BOOST_AUTO_TEST_CASE(cryptopp_aes128_cbc
     CryptoPP::CBC_Mode<CryptoPP::Rijndael>::Decryption cbcDecryption(key, key.size(), iv);
     cbcDecryption.ProcessData((byte*)&string128[0], (byte*)&string128[0], string128.size());
     BOOST_REQUIRE(plainOriginal == string128);
-    
-    
-    // plaintext whose size isn't divisible by block size must use stream filter for padding
-    string string192("AAAAAAAAAAAAAAAABBBBBBBB");
-    plainOriginal = string192;
-
-    string cipher;
-    CryptoPP::StreamTransformationFilter* aesStream = new CryptoPP::StreamTransformationFilter(cbcEncryption, new CryptoPP::StringSink(cipher));
-    CryptoPP::StringSource source(string192, true, aesStream);
-    BOOST_REQUIRE(cipher.size() == 32);
-
-    byte* pOut = reinterpret_cast<byte*>(&string192[0]);
-    byte const* pIn = reinterpret_cast<byte const*>(cipher.data());
-    cbcDecryption.ProcessData(pOut, pIn, cipher.size());
-    BOOST_REQUIRE(string192 == plainOriginal);
 }
 
 BOOST_AUTO_TEST_CASE(recoverVgt3)
openSUSE Build Service is sponsored by