test/test_test.c: fix wrong BN test [and rearrange tests a little bit].
authorAndy Polyakov <appro@openssl.org>
Fri, 19 May 2017 17:37:35 +0000 (19:37 +0200)
committerRich Salz <rsalz@openssl.org>
Sun, 21 May 2017 01:05:46 +0000 (21:05 -0400)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3502)

test/test_test.c

index 7a5079a1402816af77214586d8de48e2e00e5585..116dc731f67777ef169d5cc05d3442a032783590 100644 (file)
@@ -308,7 +308,7 @@ static int test_bignum(void)
         | !TEST(0, TEST_BN_odd(a))
         | !TEST(1, TEST_BN_eq(b, c))
         | !TEST(0, TEST_BN_eq(a, b))
-        | !TEST(1, TEST_BN_ne(NULL, c))
+        | !TEST(0, TEST_BN_ne(NULL, c))
         | !TEST(1, TEST_int_eq(BN_dec2bn(&b, "1"), 1))
         | !TEST(1, TEST_BN_eq_word(b, 1))
         | !TEST(1, TEST_BN_eq_one(b))
@@ -494,8 +494,8 @@ void register_tests(void)
     ADD_TEST(test_memory);
     ADD_TEST(test_memory_overflow);
     ADD_TEST(test_bignum);
-    ADD_TEST(test_long_output);
     ADD_TEST(test_long_bignum);
+    ADD_TEST(test_long_output);
     ADD_TEST(test_messages);
     ADD_TEST(test_single_eval);
 }