projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skip the correct number of tests if SM2 is disabled
[openssl.git]
/
test
/
asn1_string_table_test.c
diff --git
a/test/asn1_string_table_test.c
b/test/asn1_string_table_test.c
index 7e542b952e310c1fad2ae718718c5986cdf1cd9b..5c3501b210c924145a8e9c4d5ed8caa5c60f792e 100644
(file)
--- a/
test/asn1_string_table_test.c
+++ b/
test/asn1_string_table_test.c
@@
-1,13
+1,13
@@
/*
* Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
*
/*
* Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
*
- * Licensed under the
OpenSSL license
(the "License"). You may not use
+ * Licensed under the
Apache License 2.0
(the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
-/* Tests for the A
NS
1_STRING_TABLE_* functions */
+/* Tests for the A
SN
1_STRING_TABLE_* functions */
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-15,7
+15,7
@@
#include <openssl/asn1.h>
#include "testutil.h"
#include <openssl/asn1.h>
#include "testutil.h"
-static int test_string_tbl()
+static int test_string_tbl(
void
)
{
const ASN1_STRING_TABLE *tmp = NULL;
int nid = 12345678, nid2 = 87654321, rv = 0, ret = 0;
{
const ASN1_STRING_TABLE *tmp = NULL;
int nid = 12345678, nid2 = 87654321, rv = 0, ret = 0;
@@
-70,7
+70,8
@@
static int test_string_tbl()
return rv;
}
return rv;
}
-
void register
_tests(void)
+
int setup
_tests(void)
{
ADD_TEST(test_string_tbl);
{
ADD_TEST(test_string_tbl);
+ return 1;
}
}