diff --git a/test/systemtest/common/resource/fuzzTest/src/getparam.cpp b/test/systemtest/common/resource/fuzzTest/src/getparam.cpp index a31a7f77c5657db7f7f7c145ac30e0a3ddcba037..b6296597f201a24c0bd50a0d77a26d61e6ed638e 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 e86db6abf403c8417af1ba2ef47c06838491945c..6960ea8a5f86f1422c1f49a6db04b32a6ebde8f4 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",