From 97a00247f88db4729c18e1efd9700c8e4d1d7766 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Tue, 20 Jan 2026 14:47:53 -0800 Subject: [PATCH] [test] Disable TSAN thread leak detection for more tests that call exit. Cf. cee7000c1ad64bc1302c5d7b0d8bf7a0977125d5. TEST=tsan Bug: https://github.com/dart-lang/sdk/issues/62405 Change-Id: I03d6bd34e57c249f0e62ae87179614b9871e0436 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/474483 Reviewed-by: Alexander Aprelev Commit-Queue: Ryan Macnak --- .../many_isolates_blocked_at_process_run_sync_test.dart | 2 ++ .../vm/dart/isolates/many_isolates_blocked_at_sleep_test.dart | 2 ++ tests/standalone/io/exit_works_with_blocked_isolate_test.dart | 2 ++ .../io/http_server_close_response_after_error_client.dart | 2 ++ tests/standalone/io/process_sync_test.dart | 1 + tests/standalone/io/regress_7191_test.dart | 1 + tests/standalone/io/signal_test_script.dart | 2 ++ 7 files changed, 12 insertions(+) diff --git a/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_process_run_sync_test.dart b/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_process_run_sync_test.dart index 42d4d9aa5fa..5b81d81864e 100644 --- a/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_process_run_sync_test.dart +++ b/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_process_run_sync_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Environment=TSAN_OPTIONS=report_thread_leaks=0 + import "dart:isolate"; import "dart:io"; diff --git a/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_sleep_test.dart b/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_sleep_test.dart index d053d684868..0b0d89f8f3a 100644 --- a/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_sleep_test.dart +++ b/runtime/tests/vm/dart/isolates/many_isolates_blocked_at_sleep_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Environment=TSAN_OPTIONS=report_thread_leaks=0 + import "dart:isolate"; import "dart:io"; diff --git a/tests/standalone/io/exit_works_with_blocked_isolate_test.dart b/tests/standalone/io/exit_works_with_blocked_isolate_test.dart index 99ed4cfa7ad..6b5871988fa 100644 --- a/tests/standalone/io/exit_works_with_blocked_isolate_test.dart +++ b/tests/standalone/io/exit_works_with_blocked_isolate_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Environment=TSAN_OPTIONS=report_thread_leaks=0 + import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone/io/http_server_close_response_after_error_client.dart b/tests/standalone/io/http_server_close_response_after_error_client.dart index beee23a88c9..ff95d62ac7c 100644 --- a/tests/standalone/io/http_server_close_response_after_error_client.dart +++ b/tests/standalone/io/http_server_close_response_after_error_client.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Environment=TSAN_OPTIONS=report_thread_leaks=0 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone/io/process_sync_test.dart b/tests/standalone/io/process_sync_test.dart index e320166820f..1373c0d849c 100644 --- a/tests/standalone/io/process_sync_test.dart +++ b/tests/standalone/io/process_sync_test.dart @@ -3,6 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // OtherResources=process_sync_script.dart +// Environment=TSAN_OPTIONS=report_thread_leaks=0 import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone/io/regress_7191_test.dart b/tests/standalone/io/regress_7191_test.dart index 56907256d1b..cc08a325b69 100644 --- a/tests/standalone/io/regress_7191_test.dart +++ b/tests/standalone/io/regress_7191_test.dart @@ -3,6 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // OtherResources=regress_7191_script.dart +// Environment=TSAN_OPTIONS=report_thread_leaks=0 // Regression test for http://dartbug.com/7191. diff --git a/tests/standalone/io/signal_test_script.dart b/tests/standalone/io/signal_test_script.dart index 772c2afc424..f8c49c40f12 100644 --- a/tests/standalone/io/signal_test_script.dart +++ b/tests/standalone/io/signal_test_script.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Environment=TSAN_OPTIONS=report_thread_leaks=0 + import "dart:io"; import "dart:async";