Skip to content

Commit 31a15f0

Browse files
committed
bench: Disable WalletCreate* benchmarks when building with MSVC
1 parent 23dc0c1 commit 31a15f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bench/wallet_create.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@ static void WalletCreate(benchmark::Bench& bench, bool encrypted)
5151
static void WalletCreatePlain(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/false); }
5252
static void WalletCreateEncrypted(benchmark::Bench& bench) { WalletCreate(bench, /*encrypted=*/true); }
5353

54+
#ifndef _MSC_VER
55+
// TODO: Being built with MSVC, the fs::remove_all() call in
56+
// the WalletCreate() fails with the error "The process cannot
57+
// access the file because it is being used by another process."
5458
#ifdef USE_SQLITE
5559
BENCHMARK(WalletCreatePlain, benchmark::PriorityLevel::LOW);
5660
BENCHMARK(WalletCreateEncrypted, benchmark::PriorityLevel::LOW);
5761
#endif
62+
#endif
5863

5964
} // namespace wallet

0 commit comments

Comments
 (0)