From: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date: Thu, 21 Jun 2018 06:07:48 +0000 (+0200)
Subject: Fix negative test result in sm2 test
X-Git-Tag: OpenSSL_1_1_1-pre9~247
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09fb65d5e413b7b87bf26f01ec441b44a03d4ee2;p=openssl

Fix negative test result in sm2 test

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6548)
---

diff --git a/test/sm2_internal_test.c b/test/sm2_internal_test.c
index d4ec01e96e..ea8ac7df88 100644
--- a/test/sm2_internal_test.c
+++ b/test/sm2_internal_test.c
@@ -209,7 +209,7 @@ static int test_sm2_crypt(const EC_GROUP *group,
 
 static int sm2_crypt_test(void)
 {
-    int testresult = 1;
+    int testresult = 0;
     EC_GROUP *test_group =
         create_EC_group
         ("8542D69E4C044F18E8B92435BF6FF7DE457283915C45517D722EDB8B08F1DFC3",