aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-25 13:39:35 +0000
committersaturneric <[email protected]>2024-11-25 13:39:35 +0000
commit50e2d5cb3deaf3359a68ceaebdaa2abdb2142fd6 (patch)
treeff0dc0b571bfeb8d3431c239bbffefce3fbb7300 /src/core/GpgCoreInit.cpp
parenttest: fix and add KeyGen & SubkeyGen test cases (diff)
downloadGpgFrontend-50e2d5cb3deaf3359a68ceaebdaa2abdb2142fd6.tar.gz
GpgFrontend-50e2d5cb3deaf3359a68ceaebdaa2abdb2142fd6.zip
fix: solve a race situation at unit test mode
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index 8a625f9d..bb0b75fe 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -484,7 +484,7 @@ auto InitGpgFrontendCore(CoreInitArgs args) -> int {
settings.value("gnupg/restart_gpg_agent_on_start", false).toBool();
// unit test mode
- if (!args.unit_test_mode) {
+ if (args.unit_test_mode) {
Module::UpsertRTValue("core", "env.state.basic", 1);
Module::UpsertRTValue("core", "env.state.all", 1);
CoreSignalStation::GetInstance()->SignalGoodGnupgEnv();