mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
bench: Disable WalletCreate* benchmarks when building with MSVC
This commit is contained in:
parent
23dc0c19ac
commit
31a15f0aff
1 changed files with 5 additions and 0 deletions
|
@ -51,9 +51,14 @@ static void WalletCreate(benchmark::Bench& bench, bool encrypted)
|
||||||
static void WalletCreatePlain(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/false); }
|
static void WalletCreatePlain(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/false); }
|
||||||
static void WalletCreateEncrypted(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/true); }
|
static void WalletCreateEncrypted(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/true); }
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
// TODO: Being built with MSVC, the fs::remove_all() call in
|
||||||
|
// the WalletCreate() fails with the error "The process cannot
|
||||||
|
// access the file because it is being used by another process."
|
||||||
#ifdef USE_SQLITE
|
#ifdef USE_SQLITE
|
||||||
BENCHMARK(WalletCreatePlain, benchmark::PriorityLevel::LOW);
|
BENCHMARK(WalletCreatePlain, benchmark::PriorityLevel::LOW);
|
||||||
BENCHMARK(WalletCreateEncrypted, benchmark::PriorityLevel::LOW);
|
BENCHMARK(WalletCreateEncrypted, benchmark::PriorityLevel::LOW);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace wallet
|
} // namespace wallet
|
||||||
|
|
Loading…
Add table
Reference in a new issue