Skip to content

Commit c2e042f

Browse files
committed
Test: white space changes only, no logic change
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent 1c3d0d7 commit c2e042f

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

test/testlib.h

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,36 @@ extern "C" {
2727
* GTEST_SKIP_ assumes the caller to be the test function that is to
2828
* be skipped. So this one has to be implemented as a macro.
2929
*/
30-
# define TESTLIB_ENV_AES_KEY_CHECK() \
31-
do { \
32-
const char *apqns[257]; \
33-
const char *mkvp; \
34-
int size, type, rc; \
35-
\
36-
size = testlib_env_aes_key_size(); \
37-
switch (size) { \
38-
case 128: /* fall-through */ \
39-
case 192: /* fall-through */ \
40-
case 256: /* fall-through */ \
41-
break; \
42-
case -1: \
43-
GTEST_SKIP_("ZPC_TEST_AES_KEY_SIZE environment variable not set."); \
44-
break; \
45-
default: \
30+
# define TESTLIB_ENV_AES_KEY_CHECK() \
31+
do { \
32+
const char *apqns[257]; \
33+
const char *mkvp; \
34+
int size, type, rc; \
35+
\
36+
size = testlib_env_aes_key_size(); \
37+
switch (size) { \
38+
case 128: /* fall-through */ \
39+
case 192: /* fall-through */ \
40+
case 256: /* fall-through */ \
41+
break; \
42+
case -1: \
43+
GTEST_SKIP_("ZPC_TEST_AES_KEY_SIZE environment variable not set."); \
44+
break; \
45+
default: \
4646
GTEST_SKIP_("ZPC_TEST_AES_KEY_SIZE environment variable set to invalid key-size."); \
47-
break; \
48-
} \
49-
\
50-
type = testlib_env_aes_key_type(); \
51-
if (type == -1) \
52-
GTEST_SKIP_("ZPC_TEST_AES_KEY_TYPE environment variable not set."); \
53-
\
54-
mkvp = testlib_env_aes_key_mkvp(); \
55-
rc = testlib_env_aes_key_apqns(apqns); \
56-
if (rc == 0 && mkvp != NULL) \
57-
GTEST_SKIP_("Both ZPC_TEST_AES_KEY_MKVP and ZPC_TEST_AES_KEY_APQNS environment variables set."); \
58-
if (rc != 0 && mkvp == NULL) \
59-
GTEST_SKIP_("ZPC_TEST_AES_KEY_MKVP and ZPC_TEST_AES_KEY_APQNS environment variables unset."); \
47+
break; \
48+
} \
49+
\
50+
type = testlib_env_aes_key_type(); \
51+
if (type == -1) \
52+
GTEST_SKIP_("ZPC_TEST_AES_KEY_TYPE environment variable not set."); \
53+
\
54+
mkvp = testlib_env_aes_key_mkvp(); \
55+
rc = testlib_env_aes_key_apqns(apqns); \
56+
if (rc == 0 && mkvp != NULL) \
57+
GTEST_SKIP_("Both ZPC_TEST_AES_KEY_MKVP and ZPC_TEST_AES_KEY_APQNS environment variables set."); \
58+
if (rc != 0 && mkvp == NULL) \
59+
GTEST_SKIP_("ZPC_TEST_AES_KEY_MKVP and ZPC_TEST_AES_KEY_APQNS environment variables unset."); \
6060
} while (0)
6161

6262
# define TESTLIB_AES_ECB_HW_CAPS_CHECK() \
@@ -302,38 +302,38 @@ do { \
302302
zpc_aes_key_free(&aes_key); \
303303
} while (0)
304304

305-
# define TESTLIB_ENV_EC_KEY_CHECK() \
306-
do { \
307-
const char *apqns[257]; \
308-
const char *mkvp; \
309-
int type, rc; \
310-
int curve = testlib_env_ec_key_curve(); \
311-
\
312-
switch (curve) { \
313-
case ZPC_EC_CURVE_P256: /* fall-through */ \
314-
case ZPC_EC_CURVE_P384: /* fall-through */ \
315-
case ZPC_EC_CURVE_P521: /* fall-through */ \
316-
case ZPC_EC_CURVE_ED25519: /* fall-through */ \
317-
case ZPC_EC_CURVE_ED448: /* fall-through */ \
318-
break; \
319-
case ZPC_EC_CURVE_INVALID: \
320-
GTEST_SKIP_("ZPC_TEST_EC_KEY_CURVE environment variable set to invalid value."); \
321-
break; \
322-
default: \
323-
GTEST_SKIP_("ZPC_TEST_EC_KEY_CURVE environment variable not set."); \
324-
break; \
325-
} \
326-
\
327-
type = testlib_env_ec_key_type(); \
328-
if (type == -1) \
329-
GTEST_SKIP_("ZPC_TEST_EC_KEY_TYPE environment variable not set."); \
330-
\
331-
mkvp = testlib_env_ec_key_mkvp(); \
332-
rc = testlib_env_ec_key_apqns(apqns); \
333-
if (rc == 0 && mkvp != NULL) \
334-
GTEST_SKIP_("Both ZPC_TEST_EC_KEY_MKVP and ZPC_TEST_EC_KEY_APQNS environment variables set."); \
335-
if (rc != 0 && mkvp == NULL) \
336-
GTEST_SKIP_("ZPC_TEST_EC_KEY_MKVP and ZPC_TEST_EC_KEY_APQNS environment variables unset."); \
305+
# define TESTLIB_ENV_EC_KEY_CHECK() \
306+
do { \
307+
const char *apqns[257]; \
308+
const char *mkvp; \
309+
int type, rc; \
310+
int curve = testlib_env_ec_key_curve(); \
311+
\
312+
switch (curve) { \
313+
case ZPC_EC_CURVE_P256: /* fall-through */ \
314+
case ZPC_EC_CURVE_P384: /* fall-through */ \
315+
case ZPC_EC_CURVE_P521: /* fall-through */ \
316+
case ZPC_EC_CURVE_ED25519: /* fall-through */ \
317+
case ZPC_EC_CURVE_ED448: /* fall-through */ \
318+
break; \
319+
case ZPC_EC_CURVE_INVALID: \
320+
GTEST_SKIP_("ZPC_TEST_EC_KEY_CURVE environment variable set to invalid value."); \
321+
break; \
322+
default: \
323+
GTEST_SKIP_("ZPC_TEST_EC_KEY_CURVE environment variable not set."); \
324+
break; \
325+
} \
326+
\
327+
type = testlib_env_ec_key_type(); \
328+
if (type == -1) \
329+
GTEST_SKIP_("ZPC_TEST_EC_KEY_TYPE environment variable not set."); \
330+
\
331+
mkvp = testlib_env_ec_key_mkvp(); \
332+
rc = testlib_env_ec_key_apqns(apqns); \
333+
if (rc == 0 && mkvp != NULL) \
334+
GTEST_SKIP_("Both ZPC_TEST_EC_KEY_MKVP and ZPC_TEST_EC_KEY_APQNS environment variables set."); \
335+
if (rc != 0 && mkvp == NULL) \
336+
GTEST_SKIP_("ZPC_TEST_EC_KEY_MKVP and ZPC_TEST_EC_KEY_APQNS environment variables unset."); \
337337
} while (0)
338338

339339
# define TESTLIB_EC_HW_CAPS_CHECK() \

0 commit comments

Comments
 (0)