From 7dea0057298e7759373071899dbdfa57465ed6d5 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 9 Jan 2026 18:12:03 +0100 Subject: [PATCH] tests: Avoid needless skip in testcases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the whole unit is skipped in fips mode Signed-off-by: Jakub Jelen Reviewed-by: Pavol Žáčik Reviewed-by: Andreas Schneider --- tests/unittests/torture_pki_ed25519_uri.c | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/tests/unittests/torture_pki_ed25519_uri.c b/tests/unittests/torture_pki_ed25519_uri.c index 3d4768c1..25992799 100644 --- a/tests/unittests/torture_pki_ed25519_uri.c +++ b/tests/unittests/torture_pki_ed25519_uri.c @@ -190,11 +190,6 @@ static void torture_pki_ed25519_import_pubkey_uri(void **state) int rc; struct pki_st *test_state = *state; - /* Skip test if in FIPS mode */ - if (ssh_fips_mode()) { - skip(); - } - rc = ssh_pki_import_pubkey_file(test_state->pub_uri, &pubkey); assert_return_code(rc, errno); @@ -212,11 +207,6 @@ static void torture_pki_ed25519_import_privkey_uri(void **state) ssh_key privkey = NULL; struct pki_st *test_state = *state; - /* Skip test if in FIPS mode */ - if (ssh_fips_mode()) { - skip(); - } - rc = ssh_pki_import_privkey_file(test_state->priv_uri, NULL, NULL, @@ -239,11 +229,6 @@ static void torture_pki_sign_verify_uri(void **state) ssh_session session = ssh_new(); struct pki_st *test_state = *state; - /* Skip test if in FIPS mode */ - if (ssh_fips_mode()) { - skip(); - } - rc = ssh_pki_import_privkey_file(test_state->priv_uri, NULL, NULL, @@ -276,11 +261,6 @@ static void torture_pki_ed25519_publickey_from_privatekey_uri(void **state) ssh_key pubkey = NULL; struct pki_st *test_state = *state; - /* Skip test if in FIPS mode */ - if (ssh_fips_mode()) { - skip(); - } - rc = ssh_pki_import_privkey_file(test_state->priv_uri, NULL, NULL, @@ -308,11 +288,6 @@ static void torture_pki_ed25519_uri_invalid_configurations(void **state) struct pki_st *test_state = *state; - /* Skip test if in FIPS mode */ - if (ssh_fips_mode()) { - skip(); - } - rc = ssh_pki_import_pubkey_file(test_state->pub_uri_invalid_object, &pubkey); assert_int_not_equal(rc, 0); assert_null(pubkey);