diff options
author | Jack Lloyd <[email protected]> | 2018-01-19 07:03:10 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-19 07:03:10 -0500 |
commit | ba41d6079f99a96dc3380a8ba47693be14aad5c2 (patch) | |
tree | 016a8d3d98b8a7f047dadaaddd69f73af8ab6e5c /src/tests/test_pkcs11_high_level.cpp | |
parent | 2b7000735fcb33abba0134b1eb5388d82a3ba1c4 (diff) |
Reorganize code to avoid cli/test build failures if filesystem disabled
Fixes #1422
Diffstat (limited to 'src/tests/test_pkcs11_high_level.cpp')
-rw-r--r-- | src/tests/test_pkcs11_high_level.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test_pkcs11_high_level.cpp b/src/tests/test_pkcs11_high_level.cpp index 950171d9c..e89715189 100644 --- a/src/tests/test_pkcs11_high_level.cpp +++ b/src/tests/test_pkcs11_high_level.cpp @@ -1550,6 +1550,7 @@ Test::Result test_x509_import() { Test::Result result("PKCS11 X509 cert import"); +#if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) TestSession test_session(true); X509_Certificate root(Test::data_file("x509/nist/test01/end.crt")); @@ -1565,6 +1566,7 @@ Test::Result test_x509_import() result.test_eq("X509 certificate by handle", pkcs11_cert == pkcs11_cert2, true); pkcs11_cert.destroy(); +#endif return result; } |