From 9ec6237241cb875733db514e07d9294e7ce45856 Mon Sep 17 00:00:00 2001 From: "liang.he@intel.com" Date: Mon, 30 Mar 2026 07:36:56 +0800 Subject: [PATCH] remove an empty case --- tests/unit/CMakeLists.txt | 1 - tests/unit/tid-allocator/CMakeLists.txt | 35 ------------------------- tests/unit/tid-allocator/main.cpp | 22 ---------------- 3 files changed, 58 deletions(-) delete mode 100644 tests/unit/tid-allocator/CMakeLists.txt delete mode 100644 tests/unit/tid-allocator/main.cpp diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index bf3816907..e51eb2c46 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -101,7 +101,6 @@ add_subdirectory(linear-memory-wasm) add_subdirectory(linear-memory-aot) add_subdirectory(linux-perf) add_subdirectory(gc) -add_subdirectory(tid-allocator) add_subdirectory(unsupported-features) add_subdirectory(exception-handling) add_subdirectory(running-modes) diff --git a/tests/unit/tid-allocator/CMakeLists.txt b/tests/unit/tid-allocator/CMakeLists.txt deleted file mode 100644 index 87cf08654..000000000 --- a/tests/unit/tid-allocator/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -cmake_minimum_required (VERSION 3.14) - -project (tid_allocator_tests) - -if (NOT DEFINED WAMR_BUILD_LIB_WASI_THREADS) - set (WAMR_BUILD_LIB_WASI_THREADS 1) -endif () - -if (NOT DEFINED WAMR_BUILD_INTERP) - set (WAMR_BUILD_INTERP 1) -endif () - -include (../unit_common.cmake) - -add_library (tid_allocator_vmlib ${WAMR_RUNTIME_LIB_SOURCE}) -add_library (wamr_gtest_main main.cpp) -target_link_libraries (wamr_gtest_main PUBLIC gtest tid_allocator_vmlib) - -function (create_wamr_unit_test test_name) - set (sources ${ARGN}) - add_executable (${test_name} ${sources}) - target_link_libraries ( - ${test_name} - wamr_gtest_main - tid_allocator_vmlib - ${LLVM_AVAILABLE_LIBS} - ) - gtest_discover_tests (${test_name}) - endfunction () - -include (${IWASM_DIR}/libraries/lib-wasi-threads/unit-test/lib_wasi_threads_unit_tests.cmake) - diff --git a/tests/unit/tid-allocator/main.cpp b/tests/unit/tid-allocator/main.cpp deleted file mode 100644 index 081676a1b..000000000 --- a/tests/unit/tid-allocator/main.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2023 Amazon.com Inc. or its affiliates. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - */ - -#include -#include "wasm_runtime_common.h" - -int -main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - - if (!wasm_runtime_init()) { - return -1; - } - - int ret = RUN_ALL_TESTS(); - wasm_runtime_destroy(); - - return ret; -} \ No newline at end of file