From 873eb0930c83fafa035332ce5781bd574cd40d8e Mon Sep 17 00:00:00 2001 From: Hu Yueh-Wei Date: Sun, 1 Dec 2024 17:26:02 +0800 Subject: [PATCH] fix: read float type property, but int value from json --- .vscode/launch.json | 4 +- .../ten_utils/value/type_info.h | 8 ++ core/src/ten_utils/value/type.c | 16 +-- tests/ten_runtime/smoke/BUILD.gn | 1 + .../ten_runtime/smoke/extension_test/BUILD.gn | 1 - .../{extension_test => }/property/BUILD.gn | 0 .../property/property_access_app_store.cc | 2 +- .../property_access_app_store_async.cc | 2 +- .../property/property_all.cc | 2 +- .../property/property_connect_cmd.cc | 2 +- ..._connect_cmd_override_extension_success.cc | 2 +- .../property/property_extension.cc | 2 +- .../property/property_get_float64.cc | 2 +- ...property_get_float64_type_but_int_value.cc | 122 ++++++++++++++++++ .../property/property_get_int32.cc | 2 +- .../property/property_in_graph_use_env_1.cc | 2 +- .../property/property_in_graph_use_env_2.cc | 2 +- .../property/property_not_exist.cc | 2 +- .../property/property_prebuilt_graph.cc | 2 +- .../property/property_set_float32.cc | 2 +- .../property/property_set_int32.cc | 2 +- 21 files changed, 151 insertions(+), 29 deletions(-) rename tests/ten_runtime/smoke/{extension_test => }/property/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_access_app_store.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_access_app_store_async.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_all.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_connect_cmd.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_connect_cmd_override_extension_success.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_extension.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_get_float64.cc (98%) create mode 100644 tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc rename tests/ten_runtime/smoke/{extension_test => }/property/property_get_int32.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_in_graph_use_env_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_in_graph_use_env_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_not_exist.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_prebuilt_graph.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_set_float32.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/property/property_set_int32.cc (98%) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1427927ac..26a31fd93 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -137,13 +137,13 @@ "request": "launch", "program": "${workspaceFolder}/out/linux/x64/tests/standalone/ten_runtime_smoke_test", "args": [ - "--gtest_filter=StandaloneTest.BasicGraphCrossApp" + "--gtest_filter=PropertyTest.GetFloat64TypeButIntValue" ], "cwd": "${workspaceFolder}/out/linux/x64/tests/standalone/", "env": { "LD_LIBRARY_PATH": "${workspaceFolder}/out/linux/x64/tests/standalone/", "ASAN_OPTIONS": "abort_on_error=1", - "TEN_ENABLE_MEMORY_TRACKING": "true" + // "TEN_ENABLE_MEMORY_TRACKING": "true" }, }, { diff --git a/core/include_internal/ten_utils/value/type_info.h b/core/include_internal/ten_utils/value/type_info.h index 9c3b89321..445fb1aed 100644 --- a/core/include_internal/ten_utils/value/type_info.h +++ b/core/include_internal/ten_utils/value/type_info.h @@ -18,6 +18,14 @@ "This file contains C99 array designated initializer, and Visual Studio C++ compiler can only support up to C89 by default, so we enable this checking to prevent any wrong inclusion of this file." #endif +#define TEN_IS_INTEGER_TYPE(t) \ + ((t) == TEN_TYPE_INT8 || (t) == TEN_TYPE_UINT8 || (t) == TEN_TYPE_INT16 || \ + (t) == TEN_TYPE_UINT16 || (t) == TEN_TYPE_INT32 || \ + (t) == TEN_TYPE_UINT32 || (t) == TEN_TYPE_INT64 || (t) == TEN_TYPE_UINT64) + +#define TEN_IS_FLOAT_TYPE(t) \ + ((t) == TEN_TYPE_FLOAT32 || (t) == TEN_TYPE_FLOAT64) + typedef struct ten_type_info_t { const char *name; } ten_type_info_t; diff --git a/core/src/ten_utils/value/type.c b/core/src/ten_utils/value/type.c index 5c053f473..93e8bab6c 100644 --- a/core/src/ten_utils/value/type.c +++ b/core/src/ten_utils/value/type.c @@ -85,20 +85,12 @@ bool ten_type_is_compatible(TEN_TYPE actual, TEN_TYPE expected) { return true; } - if ((expected == TEN_TYPE_UINT8 || expected == TEN_TYPE_INT8 || - expected == TEN_TYPE_UINT16 || expected == TEN_TYPE_INT16 || - expected == TEN_TYPE_UINT32 || expected == TEN_TYPE_INT32 || - expected == TEN_TYPE_UINT64 || expected == TEN_TYPE_INT64) && - (actual == TEN_TYPE_UINT8 || actual == TEN_TYPE_INT8 || - actual == TEN_TYPE_UINT16 || actual == TEN_TYPE_INT16 || - actual == TEN_TYPE_UINT32 || actual == TEN_TYPE_INT32 || - actual == TEN_TYPE_UINT64 || actual == TEN_TYPE_INT64)) { - return true; + if (TEN_IS_INTEGER_TYPE(expected)) { + return TEN_IS_INTEGER_TYPE(actual); } - if ((expected == TEN_TYPE_FLOAT32 || expected == TEN_TYPE_FLOAT64) && - (actual == TEN_TYPE_FLOAT32 || actual == TEN_TYPE_FLOAT64)) { - return true; + if (TEN_IS_FLOAT_TYPE(expected)) { + return TEN_IS_INTEGER_TYPE(actual) || TEN_IS_FLOAT_TYPE(actual); } switch (expected) { diff --git a/tests/ten_runtime/smoke/BUILD.gn b/tests/ten_runtime/smoke/BUILD.gn index 2c208a4d0..ccd4f218e 100644 --- a/tests/ten_runtime/smoke/BUILD.gn +++ b/tests/ten_runtime/smoke/BUILD.gn @@ -41,6 +41,7 @@ ten_executable("ten_runtime_smoke_test") { "log_test", "msg_test", "notify_test", + "property", "result_conversion", "standalone_test", "ten_env_call_timing", diff --git a/tests/ten_runtime/smoke/extension_test/BUILD.gn b/tests/ten_runtime/smoke/extension_test/BUILD.gn index 817b99a39..7d470da2e 100644 --- a/tests/ten_runtime/smoke/extension_test/BUILD.gn +++ b/tests/ten_runtime/smoke/extension_test/BUILD.gn @@ -43,7 +43,6 @@ glob("extension_test") { "path", "predefined_graph", "prepare_to_stop", - "property", "resp_handler", "return", "same_thread_ext_on_xxx", diff --git a/tests/ten_runtime/smoke/extension_test/property/BUILD.gn b/tests/ten_runtime/smoke/property/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/property/BUILD.gn rename to tests/ten_runtime/smoke/property/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/property/property_access_app_store.cc b/tests/ten_runtime/smoke/property/property_access_app_store.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_access_app_store.cc rename to tests/ten_runtime/smoke/property/property_access_app_store.cc index 9597f6772..a90fd0e27 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_access_app_store.cc +++ b/tests/ten_runtime/smoke/property/property_access_app_store.cc @@ -103,7 +103,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(test_property_access_app_store_2, } // namespace -TEST(ExtensionTest, PropertyAccessAppStore) { // NOLINT +TEST(PropertyTest, AccessAppStore) { // NOLINT auto *app_thread = ten_thread_create("app thread", app_thread_main, nullptr); // Create a client and connect to the app. diff --git a/tests/ten_runtime/smoke/extension_test/property/property_access_app_store_async.cc b/tests/ten_runtime/smoke/property/property_access_app_store_async.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_access_app_store_async.cc rename to tests/ten_runtime/smoke/property/property_access_app_store_async.cc index fadb39ed8..2fcb48f91 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_access_app_store_async.cc +++ b/tests/ten_runtime/smoke/property/property_access_app_store_async.cc @@ -97,7 +97,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(test_property_access_app_store_async_2, } // namespace -TEST(ExtensionTest, PropertyAccessAppStoreAsync) { // NOLINT +TEST(PropertyTest, AccessAppStoreAsync) { // NOLINT auto *app_thread = ten_thread_create("app thread", app_thread_main, nullptr); // Create a client and connect to the app. diff --git a/tests/ten_runtime/smoke/extension_test/property/property_all.cc b/tests/ten_runtime/smoke/property/property_all.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/property/property_all.cc rename to tests/ten_runtime/smoke/property/property_all.cc index 173338067..5abf63488 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_all.cc +++ b/tests/ten_runtime/smoke/property/property_all.cc @@ -138,7 +138,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_all__extension, test_extension); } // namespace -TEST(ExtensionTest, PropertyAll) { // NOLINT +TEST(PropertyTest, All) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_connect_cmd.cc b/tests/ten_runtime/smoke/property/property_connect_cmd.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_connect_cmd.cc rename to tests/ten_runtime/smoke/property/property_connect_cmd.cc index 8a5e547bb..9314987ef 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_connect_cmd.cc +++ b/tests/ten_runtime/smoke/property/property_connect_cmd.cc @@ -84,7 +84,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_start_graph_cmd__extension, } // namespace -TEST(ExtensionTest, PropertyConnectCmd) { // NOLINT +TEST(PropertyTest, ConnectCmd) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_connect_cmd_override_extension_success.cc b/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/property/property_connect_cmd_override_extension_success.cc rename to tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc index 1f655a406..c1fd0eca7 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_connect_cmd_override_extension_success.cc +++ b/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc @@ -69,7 +69,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, PropertyConnectCmdOverrideExtensionSuccess) { // NOLINT +TEST(PropertyTest, ConnectCmdOverrideExtensionSuccess) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_extension.cc b/tests/ten_runtime/smoke/property/property_extension.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/property/property_extension.cc rename to tests/ten_runtime/smoke/property/property_extension.cc index 81e6aa98e..861c5a260 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_extension.cc +++ b/tests/ten_runtime/smoke/property/property_extension.cc @@ -119,7 +119,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_extension__extension, } // namespace -TEST(ExtensionTest, PropertyExtension) { // NOLINT +TEST(PropertyTest, Extension) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_get_float64.cc b/tests/ten_runtime/smoke/property/property_get_float64.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_get_float64.cc rename to tests/ten_runtime/smoke/property/property_get_float64.cc index 4b504802c..b4193e597 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_get_float64.cc +++ b/tests/ten_runtime/smoke/property/property_get_float64.cc @@ -83,7 +83,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_get_float64__extension, } // namespace -TEST(ExtensionTest, PropertyGetFloat64) { // NOLINT +TEST(PropertyTest, GetFloat64) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc b/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc new file mode 100644 index 000000000..4c7f849d3 --- /dev/null +++ b/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc @@ -0,0 +1,122 @@ +// +// Copyright © 2024 Agora +// This file is part of TEN Framework, an open source project. +// Licensed under the Apache License, Version 2.0, with certain conditions. +// Refer to the "LICENSE" file in the root directory for more information. +// +#include +#include + +#include "gtest/gtest.h" +#include "include_internal/ten_runtime/binding/cpp/ten.h" +#include "ten_utils/lang/cpp/lib/value.h" +#include "ten_utils/lib/thread.h" +#include "ten_utils/macro/macros.h" +#include "tests/common/client/cpp/msgpack_tcp.h" +#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" + +#define PROP_NAME "test_prop" +#define PROP_VAL 123 + +namespace { + +class test_extension : public ten::extension_t { + public: + explicit test_extension(const std::string &name) : ten::extension_t(name) {} + + void on_cmd(ten::ten_env_t &ten_env, + std::unique_ptr cmd) override { + if (std::string(cmd->get_name()) == "hello_world") { + auto prop_value = ten_env.get_property_float64("app:" PROP_NAME); + if (fabs(prop_value - PROP_VAL) < 0.01) { + auto cmd_result = ten::cmd_result_t::create(TEN_STATUS_CODE_OK); + cmd_result->set_property("detail", "hello world, too"); + ten_env.return_result(std::move(cmd_result), std::move(cmd)); + } + } + } +}; + +class test_app : public ten::app_t { + public: + void on_configure(ten::ten_env_t &ten_env) override { + ten::ten_env_internal_accessor_t ten_env_internal_accessor(&ten_env); + bool rc = ten_env_internal_accessor.init_manifest_from_json( + // clang-format off + "{\ + \"type\": \"app\",\ + \"name\": \"test_app\",\ + \"version\": \"1.0.0\",\ + \"api\": {\ + \"property\": {\ + \"" PROP_NAME "\": {\ + \"type\": \"float64\"\ + }\ + }\ + }\ + }" + // clang-format on + ); + ASSERT_EQ(rc, true); + + rc = ten_env.init_property_from_json( + "{\ + \"_ten\": {\ + \"uri\": \"msgpack://127.0.0.1:8001/\"},\ + \"" PROP_NAME "\":" TEN_XSTR(PROP_VAL) "}"); + ASSERT_EQ(rc, true); + + ten_env.on_configure_done(); + } +}; + +void *test_app_thread_main(TEN_UNUSED void *args) { + auto *app = new test_app(); + app->run(); + delete app; + + return nullptr; +} + +TEN_CPP_REGISTER_ADDON_AS_EXTENSION( + property_get_float64_type_but_int_value__extension, test_extension); + +} // namespace + +TEST(PropertyTest, GetFloat64TypeButIntValue) { // NOLINT + // Start app. + auto *app_thread = + ten_thread_create("app thread", test_app_thread_main, nullptr); + + // Create a client and connect to the app. + auto *client = new ten::msgpack_tcp_client_t("msgpack://127.0.0.1:8001/"); + + // Send graph. + auto start_graph_cmd = ten::cmd_start_graph_t::create(); + start_graph_cmd->set_graph_from_json(R"({ + "nodes": [{ + "type": "extension", + "name": "test_extension", + "addon": "property_get_float64_type_but_int_value__extension", + "app": "msgpack://127.0.0.1:8001/", + "extension_group": "property_get_float64_type_but_int_value__extension_group" + }] + })"); + auto cmd_result = + client->send_cmd_and_recv_result(std::move(start_graph_cmd)); + ten_test::check_status_code(cmd_result, TEN_STATUS_CODE_OK); + + // Send a user-defined 'hello world' command. + auto hello_world_cmd = ten::cmd_t::create("hello_world"); + hello_world_cmd->set_dest( + "msgpack://127.0.0.1:8001/", nullptr, + "property_get_float64_type_but_int_value__extension_group", + "test_extension"); + cmd_result = client->send_cmd_and_recv_result(std::move(hello_world_cmd)); + ten_test::check_status_code(cmd_result, TEN_STATUS_CODE_OK); + ten_test::check_detail_with_string(cmd_result, "hello world, too"); + + delete client; + + ten_thread_join(app_thread, -1); +} diff --git a/tests/ten_runtime/smoke/extension_test/property/property_get_int32.cc b/tests/ten_runtime/smoke/property/property_get_int32.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_get_int32.cc rename to tests/ten_runtime/smoke/property/property_get_int32.cc index 9b48cf3cc..d389523ff 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_get_int32.cc +++ b/tests/ten_runtime/smoke/property/property_get_int32.cc @@ -83,7 +83,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_get_int32__extension, } // namespace -TEST(ExtensionTest, PropertyGetInt32) { // NOLINT +TEST(PropertyTest, GetInt32) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_1.cc b/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_1.cc rename to tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc index a4c009557..6291c12ad 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_1.cc +++ b/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc @@ -98,7 +98,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_in_graph_use_env_1__extension, } // namespace -TEST(ExtensionTest, PropertyInGraphUseEnv1) { // NOLINT +TEST(PropertyTest, InGraphUseEnv1) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_2.cc b/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_2.cc rename to tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc index ff2c36598..4a7ed9c81 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_in_graph_use_env_2.cc +++ b/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc @@ -98,7 +98,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_in_graph_use_env_2__extension, } // namespace -TEST(ExtensionTest, PropertyInGraphUseEnv2) { // NOLINT +TEST(PropertyTest, InGraphUseEnv2) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_not_exist.cc b/tests/ten_runtime/smoke/property/property_not_exist.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_not_exist.cc rename to tests/ten_runtime/smoke/property/property_not_exist.cc index dbc547058..471664bdd 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_not_exist.cc +++ b/tests/ten_runtime/smoke/property/property_not_exist.cc @@ -69,7 +69,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_not_exist__extension, } // namespace -TEST(ExtensionTest, PropertyNotExist) { // NOLINT +TEST(PropertyTest, NotExist) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_prebuilt_graph.cc b/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_prebuilt_graph.cc rename to tests/ten_runtime/smoke/property/property_prebuilt_graph.cc index 28e017697..d4f43d01e 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_prebuilt_graph.cc +++ b/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc @@ -98,7 +98,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_predefined_graph__extension, } // namespace -TEST(ExtensionTest, PropertyPredefinedGraph) { // NOLINT +TEST(PropertyTest, PredefinedGraph) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_set_float32.cc b/tests/ten_runtime/smoke/property/property_set_float32.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_set_float32.cc rename to tests/ten_runtime/smoke/property/property_set_float32.cc index f097c6f22..bac223ba5 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_set_float32.cc +++ b/tests/ten_runtime/smoke/property/property_set_float32.cc @@ -101,7 +101,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_set_float32__extension, } // namespace -TEST(ExtensionTest, PropertySetFloat32) { // NOLINT +TEST(PropertyTest, SetFloat32) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/property/property_set_int32.cc b/tests/ten_runtime/smoke/property/property_set_int32.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/property/property_set_int32.cc rename to tests/ten_runtime/smoke/property/property_set_int32.cc index dba869015..d05846eb6 100644 --- a/tests/ten_runtime/smoke/extension_test/property/property_set_int32.cc +++ b/tests/ten_runtime/smoke/property/property_set_int32.cc @@ -100,7 +100,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(property_set_int32__extension, } // namespace -TEST(ExtensionTest, PropertySetInt32) { // NOLINT +TEST(PropertyTest, SetInt32) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr);