This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git

commit dd9f830a73aeb1b249ba1ccd48aba3635366a503
Author: Sebb <s...@apache.org>
AuthorDate: Sun Jun 26 21:50:38 2022 +0100

    Check run conditions
---
 src/test/java/org/apache/commons/crypto/CryptoTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/crypto/CryptoTest.java 
b/src/test/java/org/apache/commons/crypto/CryptoTest.java
index 992e8ee..c94f4d6 100644
--- a/src/test/java/org/apache/commons/crypto/CryptoTest.java
+++ b/src/test/java/org/apache/commons/crypto/CryptoTest.java
@@ -49,8 +49,10 @@ public class CryptoTest {
 
        @Test
        public void testMain() throws Throwable {
+    // Check that Crypt.main will actually run tests
+    assertTrue(Crypto.isNativeCodeLoaded(), "Native code loaded OK");
                Crypto.main(new String[]{"-q"}); // output causes issues for 
testing
-    assertTrue(true, "Completed OK");
+    assertTrue(Crypto.isNativeCodeLoaded(), "Completed OK");
        }
 
        @Test

Reply via email to