summaryrefslogtreecommitdiffstats
path: root/tests/crypto-vectors.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/crypto-vectors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/crypto-vectors.c b/tests/crypto-vectors.c
index 02e6be3..58d1309 100644
--- a/tests/crypto-vectors.c
+++ b/tests/crypto-vectors.c
@@ -1533,10 +1533,12 @@ int main(__attribute__ ((unused)) int argc, __attribute__ ((unused))char *argv[]
{
setvbuf(stdout, NULL, _IONBF, 0);
+#ifndef NO_CRYPTSETUP_PATH
if (getenv("CRYPTSETUP_PATH")) {
printf("Cannot run this test with CRYPTSETUP_PATH set.\n");
exit(77);
}
+#endif
if (crypt_backend_init(fips_mode()))
exit_test("Crypto backend init error.", EXIT_FAILURE);