From 83af076399eb8843c06b804b550f98981ecd48a1 Mon Sep 17 00:00:00 2001 From: Hu Yueh-Wei Date: Thu, 9 Jan 2025 11:10:17 +0800 Subject: [PATCH] feat: add more test cases of failing to start graph --- ...graph_incorrect.cc => predefined_graph_incorrect_1.cc} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tests/ten_runtime/smoke/predefined_graph/{predefined_graph_incorrect.cc => predefined_graph_incorrect_1.cc} (91%) diff --git a/tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect_1.cc similarity index 91% rename from tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect_1.cc index 1178289b5..b0df5a59c 100644 --- a/tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_incorrect_1.cc @@ -53,7 +53,7 @@ class test_app : public ten::app_t { "nodes": [{ "type": "extension", "name": "predefined_graph", - "addon": "predefined_graph_basic_1__predefined_graph", + "addon": "predefined_graph_incorrect_1__predefined_graph", "extension_group": "predefined_graph_group" }] }] @@ -75,12 +75,12 @@ void *app_thread_main(TEN_UNUSED void *args) { return nullptr; } -TEN_CPP_REGISTER_ADDON_AS_EXTENSION(predefined_graph_basic_1__predefined_graph, - test_predefined_graph); +TEN_CPP_REGISTER_ADDON_AS_EXTENSION( + predefined_graph_incorrect_1__predefined_graph, test_predefined_graph); } // namespace -TEST(PredefinedGraphTest, PredefinedGraphBasic1) { // NOLINT +TEST(PredefinedGraphTest, PredefinedGraphIncorrect1) { // NOLINT auto *app_thread = ten_thread_create("app thread", app_thread_main, nullptr); // Create a client and connect to the app.