diff --git a/static_core/plugins/ets/tests/ani/tests/CMakeLists.txt b/static_core/plugins/ets/tests/ani/tests/CMakeLists.txt index 5715524a61f2dee87c328e0fe80fdce4b45118d6..aad51c5102c122f274553386f9b401c0725a88d9 100644 --- a/static_core/plugins/ets/tests/ani/tests/CMakeLists.txt +++ b/static_core/plugins/ets/tests/ani/tests/CMakeLists.txt @@ -11,6 +11,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# NOTE(@srokashevich, #29390): remove this if block after fix +if (PANDA_ENABLE_THREAD_SANITIZER) + return() +endif() + set(EXCLUDED_TEST_PACKAGES) SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_LIST_DIR} EXCLUDED_TEST_PACKAGES) diff --git a/static_core/plugins/ets/tests/ets_test_suite/gc/CMakeLists.txt b/static_core/plugins/ets/tests/ets_test_suite/gc/CMakeLists.txt index 17e706dfa0df19b05a3745eab6ba8b3382b89fdb..39a830b131cbfe389e1eb9fd8ddc7405ffe12ea9 100644 --- a/static_core/plugins/ets/tests/ets_test_suite/gc/CMakeLists.txt +++ b/static_core/plugins/ets/tests/ets_test_suite/gc/CMakeLists.txt @@ -102,8 +102,11 @@ add_ets_gc_test(FILE pin_object.ets OPTIONS "--gc-type=g1-gc" "--gc-trigger-type # NOTE(26403) Profilesaver is turned off because of data race add_ets_gc_test(FILE get_object_address_test.ets OPTIONS "--gc-trigger-type=debug-never" MODE "INT") add_ets_gc_test(FILE space_type_test.ets OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") -# NOTE(26403) Profilesaver is turned off because of data race -add_ets_gc_test(FILE weak_ref_test.ets OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--max-free=1" "--gc-trigger-type=debug-never" MODE "INT") +# NOTE(@srokashevich, #29644): enable with tsan after fix +if (NOT PANDA_ENABLE_THREAD_SANITIZER) + # NOTE(26403) Profilesaver is turned off because of data race + add_ets_gc_test(FILE weak_ref_test.ets OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--max-free=1" "--gc-trigger-type=debug-never" MODE "INT") +endif() add_ets_gc_test(FILE concurrent_start_gc.ets OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") add_ets_gc_test(FILE register_native_allocation_test.ets OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") add_ets_gc_test(FILE finalization_registry_test.ets OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") @@ -112,7 +115,10 @@ add_ets_gc_test(TIMEOUT_CMD timeout TIMEOUT_TIME 10m FILE test_finreg_in_differe add_ets_gc_test(FILE finalization_registry_coro_test.ets OPTIONS "--coroutine-workers-count=10" "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") add_ets_gc_test(TIMEOUT_CMD timeout TIMEOUT_TIME 10m FILE finalization_registry_deadlock_test.ets OPTIONS "--gc-type=g1-gc" "--run-gc-in-place" "--gc-trigger-type=debug-never" MODE "INT") +# NOTE(@srokashevich, #29644): enable with tsan after fix +if (NOT PANDA_ENABLE_THREAD_SANITIZER) add_ets_gc_test(FILE scheduled_gc.ets OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" "--gc-use-nth-alloc-trigger=true" MODE "INT") +endif() add_ets_gc_test(FILE scheduled_gc_trigger_exception.ets OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" MODE "INT") # NOTE(@srokashevich, #29137): enable with tsan after fix diff --git a/static_core/plugins/ets/tests/ets_test_suite/tooling/CMakeLists.txt b/static_core/plugins/ets/tests/ets_test_suite/tooling/CMakeLists.txt index 02d3054dcdaf99619ea3f7cccad1728e1da7ed77..c031ea8e6fe94dd5397143a975ebadcca5e0351c 100644 --- a/static_core/plugins/ets/tests/ets_test_suite/tooling/CMakeLists.txt +++ b/static_core/plugins/ets/tests/ets_test_suite/tooling/CMakeLists.txt @@ -51,5 +51,8 @@ panda_ets_add_gtest( add_dependencies(ets_test_suite_tooling_profiler ${target}_cpp_test_gtests) endfunction() -# Running tests via API calls -add_ets_tooling_profiler_test(FILE profile_arkapi_test.ets CPP_SOURCE profile_arkapi_test.cpp OPTIONS "") +# NOTE(@srokashevich, #29469): enable with tsan after fix +if (NOT PANDA_ENABLE_THREAD_SANITIZER) + # Running tests via API calls + add_ets_tooling_profiler_test(FILE profile_arkapi_test.ets CPP_SOURCE profile_arkapi_test.cpp OPTIONS "") +endif() diff --git a/static_core/plugins/ets/tests/native/CMakeLists.txt b/static_core/plugins/ets/tests/native/CMakeLists.txt index 6abd6c9d3d3a03bf3d4636966a00d2f18c3c8f60..61e94658bf581b2cc44ee8c5da2f22aa4b05b77d 100644 --- a/static_core/plugins/ets/tests/native/CMakeLists.txt +++ b/static_core/plugins/ets/tests/native/CMakeLists.txt @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_subdirectory(exclusive_worker) -add_subdirectory(sync_primitives) -add_subdirectory(array_buffer) -add_subdirectory(atomic_int) +# add_subdirectory(exclusive_worker) +# add_subdirectory(sync_primitives) +# add_subdirectory(array_buffer) +# add_subdirectory(atomic_int) diff --git a/static_core/plugins/ets/tests/native/atomic_int/CMakeLists.txt b/static_core/plugins/ets/tests/native/atomic_int/CMakeLists.txt index bc2c95eb53db8c50aebb121396d763de81296772..bcc5d1d59113161542643f279188cd0dec815ef4 100644 --- a/static_core/plugins/ets/tests/native/atomic_int/CMakeLists.txt +++ b/static_core/plugins/ets/tests/native/atomic_int/CMakeLists.txt @@ -11,9 +11,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +# NOTE(@srokashevich, #29692): enable with tsan after fix +if (NOT PANDA_ENABLE_THREAD_SANITIZER) ets_native_test_helper(ets_atomic_int_tests CPP_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/atomic_int_test.cpp ETS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/atomic_int_test.ets ETS_GTEST_ABC_PATH "ANI_GTEST_ABC_PATH" VERIFY_SOURCES true ) +endif() diff --git a/static_core/plugins/ets/tests/runtime/CMakeLists.txt b/static_core/plugins/ets/tests/runtime/CMakeLists.txt index a96e9527131d9165c628441f5d1e6b2dac37c70d..09123db47a2098f211363ab07e777ee4db8c7146 100644 --- a/static_core/plugins/ets/tests/runtime/CMakeLists.txt +++ b/static_core/plugins/ets/tests/runtime/CMakeLists.txt @@ -35,13 +35,16 @@ panda_ets_add_gtest( DEPS_TARGETS etsstdlib ) -panda_add_gtest_with_ani(ets_vm_init_prealloc_test - CPP_SOURCES ${PANDA_ETS_PLUGIN_SOURCE}/tests/runtime/ets_vm_init_prealloc_test.cpp - ETS_SOURCES ${PANDA_ETS_PLUGIN_SOURCE}/tests/runtime/ets_vm_init_prealloc_test.ets - INCLUDE_DIRS ${PANDA_ETS_PLUGIN_SOURCE}/runtime - LIBRARIES arkbase arkfile arkruntime - TEST_GROUP ets_tests_runtime_gtests -) +# NOTE(@srokashevich, #29164): enable with tsan after fix +if (NOT PANDA_ENABLE_THREAD_SANITIZER) + panda_add_gtest_with_ani(ets_vm_init_prealloc_test + CPP_SOURCES ${PANDA_ETS_PLUGIN_SOURCE}/tests/runtime/ets_vm_init_prealloc_test.cpp + ETS_SOURCES ${PANDA_ETS_PLUGIN_SOURCE}/tests/runtime/ets_vm_init_prealloc_test.ets + INCLUDE_DIRS ${PANDA_ETS_PLUGIN_SOURCE}/runtime + LIBRARIES arkbase arkfile arkruntime + TEST_GROUP ets_tests_runtime_gtests + ) +endif() panda_add_gtest_with_ani(entrypoint_return_test CPP_SOURCES ${PANDA_ETS_PLUGIN_SOURCE}/tests/runtime/entrypoint_return_test.cpp diff --git a/static_core/plugins/ets/tests/test-lists/ets-func-tests/ets-func-tests-ignored-TSAN.txt b/static_core/plugins/ets/tests/test-lists/ets-func-tests/ets-func-tests-ignored-TSAN.txt index 97f4035d6043a850ebdd79b16c962c4c796118c7..74b52233ff453558326ccef0f270b73433f7a665 100644 --- a/static_core/plugins/ets/tests/test-lists/ets-func-tests/ets-func-tests-ignored-TSAN.txt +++ b/static_core/plugins/ets/tests/test-lists/ets-func-tests/ets-func-tests-ignored-TSAN.txt @@ -20,4 +20,20 @@ std/containers/concurrent_set/ConcurrentSet_ConstructorTest.ets std/containers/linked_blocking_queue/LinkedBlockingQueue_ConstructorTest.ets std/core/NumberTest.ets escompat/JsonStringifyTest.ets - + +#28355 +escompat/escompat_regexp_match_String.ets + +#29408 +std/core/std_core_array_includes_byte_array_byte.ets +std/core/std_core_array_indexOf_char_array_char.ets +std/core/std_core_long_instance_Long_toFloat.ets +std/core/SortStringsTest.ets +std/containers/BasicSetTest.ets +std/math/std_math_max_int_int.ets +spec/03.types/References_Types/string/constructor_with_nullish_0090.ets +spec/03.types/References_Types/Tuples_type/tuple_as_rest_param_6.ets +spec/16.Support_for_GUI_Programming/trailing_lambdas/trailing_lm_param.ets +spec/expressions/compound_assignment_01_double_mult_long.ets +spec/expressions/compound_assignment_01_int_mult_double.ets +regression/18012_enum_fromInt_error_at_cast.ets diff --git a/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-ASAN.txt b/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-ASAN.txt index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..763c447116744b9ca72d66c3ca12bafb12aa95ed 100644 --- a/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-ASAN.txt +++ b/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-ASAN.txt @@ -0,0 +1,10 @@ +#29384 +ets-common-tests/intrinsics/int32array_join.ets +ets-common-tests/intrinsics/uint8array_join.ets +ets-common-tests/intrinsics/int8array_join.ets +ets-common-tests/intrinsics/uint8clampedarray_join.ets +ets-common-tests/intrinsics/uint16array_join.ets +ets-common-tests/intrinsics/int16array_join.ets +ets-common-tests/intrinsics/string_from_char_code_escape.ets +ets-common-tests/intrinsics/string_from_char_code.ets +ets-common-tests/intrinsics/stringbuilder_oom.ets diff --git a/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-TSAN.txt b/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-TSAN.txt index 336e61c6482791238fad6dca8c90d44bbadb6286..71692e90274ed2b84d1502e45a9be093f3882be5 100644 --- a/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-TSAN.txt +++ b/static_core/plugins/ets/tests/test-lists/unit-tests/unit-tests-ignored-TSAN.txt @@ -1,6 +1,20 @@ -# 29297 +#29297 ets-common-tests/intrinsics/map_set.ets +ets-common-tests/intrinsics/array_slice.ets +ets-common-tests/intrinsics/to_string_cache.ets +ets-common-tests/intrinsics/typed_arrays_from.ets +ets-common-tests/stubs/istrue.ets # 29320 +#29298 +ets-common-tests/intrinsics/copyTo.ets + +#29320 ets-common-tests/intrinsics/isSafeInteger.ets ets-common-tests/intrinsics/uint8clampedarray_join.ets +ets-common-tests/intrinsics/string_from_string.ets +ets-common-tests/atomics/nonconcurrent_wait_timeout.ets +ets-common-tests/unions/union_method_virtual.ets + +#29408 +ets_test_suite/strings/string_concat.ets