diff options
author | Matthias Gierlings <[email protected]> | 2018-04-10 22:10:37 +0200 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2018-04-12 22:44:28 +0200 |
commit | eae170db2a6f0461cfe2f55b84ae4e89bd719a74 (patch) | |
tree | f9b9297df1a3e389a5fa44d70487cc81b87d56fa /src/lib/pubkey | |
parent | 6a9557cc5528ec01737e77b67959cba8778f1265 (diff) |
Codecov - cover MT code in XMSS_PrivateKey
Codecov does not reach all parts of the `XMSS_PrivateKey` code because too few
cores are detected during the CI run. To cover the missed codepaths always
return a large enough core count if botan is compiled with coverage.
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/xmss/xmss_tools.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/pubkey/xmss/xmss_tools.cpp b/src/lib/pubkey/xmss/xmss_tools.cpp index f4f762aeb..3297664fb 100644 --- a/src/lib/pubkey/xmss/xmss_tools.cpp +++ b/src/lib/pubkey/xmss/xmss_tools.cpp @@ -66,11 +66,19 @@ size_t XMSS_Tools::bench_threads() if(durations[0].count() < durations[1].count()) { +#if defined(BOTAN_HAS_COVERAGE) + return 4; +#else return concurrency[0]; +#endif } else { +#if defined(BOTAN_HAS_COVERAGE) + return 4; +#else return concurrency[1]; +#endif } } |