diff options
author | saturneric <[email protected]> | 2023-12-15 13:14:17 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-15 13:14:17 +0000 |
commit | f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3 (patch) | |
tree | 7e03b0b62119ff5d5dcd732ec1ccb7d2296df86d /src/test/GpgFrontendTest.cpp | |
parent | fix: slove some issues on memory and intilizations (diff) | |
download | GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.tar.gz GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.zip |
fix: slove threading and memory issues
Diffstat (limited to 'src/test/GpgFrontendTest.cpp')
-rw-r--r-- | src/test/GpgFrontendTest.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/test/GpgFrontendTest.cpp b/src/test/GpgFrontendTest.cpp index 0075c113..7b318aec 100644 --- a/src/test/GpgFrontendTest.cpp +++ b/src/test/GpgFrontendTest.cpp @@ -107,16 +107,17 @@ void ConfigureGpgContext() { std::filesystem::create_directory(db_path); } - GpgContext::CreateInstance( - kGpgFrontendDefaultChannel, [&]() -> ChannelObjectPtr { - GpgContextInitArgs args; - args.test_mode = true; - args.offline_mode = true; - args.db_path = db_path.string(); - - return ConvertToChannelObjectPtr<>(SecureCreateUniqueObject<GpgContext>( - args, kGpgFrontendDefaultChannel)); - }); + // GpgContext::CreateInstance( + // kGpgFrontendDefaultChannel, [&]() -> ChannelObjectPtr { + // GpgContextInitArgs args; + // args.test_mode = true; + // args.offline_mode = true; + // args.db_path = db_path.string(); + + // return + // ConvertToChannelObjectPtr<>(SecureCreateUniqueObject<GpgContext>( + // args, kGpgFrontendDefaultChannel)); + // }); } auto ExecuteAllTestCase(GpgFrontendContext args) -> int { |