From bd842b3c808d2bb5d7136c346469a639778eae12 Mon Sep 17 00:00:00 2001 From: zhaoyuan17 Date: Sat, 27 Nov 2021 18:00:37 +0800 Subject: [PATCH] Fix stack code and new feature Signed-off-by: zhaoyuan17 --- test/systemtest/common/resource/fuzzTest/src/getparam.cpp | 4 +++- tools/test/systemtest/cem/BUILD.gn | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/systemtest/common/resource/fuzzTest/src/getparam.cpp b/test/systemtest/common/resource/fuzzTest/src/getparam.cpp index a31a7f77..b6296597 100644 --- a/test/systemtest/common/resource/fuzzTest/src/getparam.cpp +++ b/test/systemtest/common/resource/fuzzTest/src/getparam.cpp @@ -645,7 +645,9 @@ NativeRdb::ValuesBucket GetParamValuesBucket() OHOS::AppExecFwk::Configuration GetParamConfiguration() { if (GetBoolParam()) { - return OHOS::AppExecFwk::Configuration(GetStringParam()); + OHOS::AppExecFwk::Configuration config; + config.AddItem(OHOS::AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, GetStringParam()); + return config; } else { return OHOS::AppExecFwk::Configuration(); } diff --git a/tools/test/systemtest/cem/BUILD.gn b/tools/test/systemtest/cem/BUILD.gn index e86db6ab..6960ea8a 100755 --- a/tools/test/systemtest/cem/BUILD.gn +++ b/tools/test/systemtest/cem/BUILD.gn @@ -25,7 +25,7 @@ ohos_systemtest("common_event_command_dump_system_test") { ] sources = [ - "${aafwk_path}/tools/aa/src/shell_command.cpp", + # "${aafwk_path}/tools/aa/src/shell_command.cpp", "${aafwk_path}/tools/test/systemtest/aa/tool_system_test.cpp", "${tools_path}/cem/src/common_event_command.cpp", "common_event_command_dump_system_test.cpp", @@ -47,6 +47,7 @@ ohos_systemtest("common_event_command_dump_system_test") { "${ces_common_path}:libevent_common", "${ces_core_path}:cesfwk_core", "${ces_native_path}:cesfwk_innerkits", + "//foundation/aafwk/standard/tools/aa:tools_aa_source_set", "//third_party/googletest:gtest_main", "//third_party/jsoncpp:jsoncpp", "//utils/native/base:utils", @@ -65,7 +66,7 @@ ohos_systemtest("common_event_command_publish_system_test") { include_dirs = [ "${aafwk_path}/tools/test/systemtest/aa" ] sources = [ - "${aafwk_path}/tools/aa/src/shell_command.cpp", + # "${aafwk_path}/tools/aa/src/shell_command.cpp", "${aafwk_path}/tools/test/systemtest/aa/tool_system_test.cpp", "${tools_path}/cem/src/common_event_command.cpp", "common_event_command_publish_system_test.cpp", @@ -87,6 +88,7 @@ ohos_systemtest("common_event_command_publish_system_test") { "${ces_common_path}:libevent_common", "${ces_core_path}:cesfwk_core", "${ces_native_path}:cesfwk_innerkits", + "//foundation/aafwk/standard/tools/aa:tools_aa_source_set", "//third_party/googletest:gtest_main", "//third_party/jsoncpp:jsoncpp", "//utils/native/base:utils", -- Gitee