diff --git a/tests/standalone/regress_52715_test.dart b/tests/standalone/regress_52715_test.dart index fb6341030a0..7ac3aa604a8 100644 --- a/tests/standalone/regress_52715_test.dart +++ b/tests/standalone/regress_52715_test.dart @@ -9,16 +9,16 @@ import 'dart:io'; import 'package:expect/expect.dart'; void main() async { - final startRss = ProcessInfo.currentRss; + final startRss = ProcessInfo.currentRss; //# measure: ok for (var i = 0; i < 1024; i++) { final subscription = Directory.systemTemp.watch().listen((event) {}); await subscription.cancel(); } - final endRss = ProcessInfo.currentRss; - final allocatedBytes = (endRss - startRss); - final limit = 10 * 1024 * 1024; - Expect.isTrue(allocatedBytes < limit, - 'expected VM RSS growth to be below ${limit} but got ${allocatedBytes}'); + final endRss = ProcessInfo.currentRss; //# measure: continued + final allocatedBytes = (endRss - startRss); //# measure: continued + final limit = 10 * 1024 * 1024; //# measure: continued + Expect.isTrue(allocatedBytes < limit, //# measure: continued + 'expected VM RSS growth to be below ${limit} but got ${allocatedBytes}'); //# measure: continued } diff --git a/tests/standalone/standalone_kernel.status b/tests/standalone/standalone_kernel.status index 9e150f595df..b0002144eda 100644 --- a/tests/standalone/standalone_kernel.status +++ b/tests/standalone/standalone_kernel.status @@ -66,6 +66,7 @@ io/socket_close_test: Skip # Timeout io/socket_many_connections_test: Skip # Timeout io/web_socket_compression_test: Skip # Timeout io/web_socket_test: Skip # Timeout +regress_52715_test/measure: Skip # kernel-service interferes with measuring RSS [ $compiler == dartkp && $mode == debug && $runtime == dart_precompiled ] io/raw_socket_test: Crash @@ -97,6 +98,9 @@ io/web_socket_test: Skip # Flaky. map_insert_remove_oom_test: Skip # Heap limit too low. no_support_debugger_test: Skip # kernel-service snapshot not compatible with flag disabled +[ $builder_tag == asan || $builder_tag == lsan || $builder_tag == msan || $builder_tag == tsan ] +regress_52715_test/measure: Skip # Shadow memory and scudo quarantine interfere with measuring RSS + [ $builder_tag == crossword || $compiler != dartk && $compiler != dartkp || $compiler == dartkp && $system == windows ] entrypoints_verification_test: SkipByDesign # Requires VM to run. Cannot run in precompiled Windows because the DLL is linked against dart.exe instead of dart_precompiled_runtime.exe. Cannot run in cross-word environment as native extension is not built. diff --git a/tests/standalone_2/regress_52715_test.dart b/tests/standalone_2/regress_52715_test.dart index 6bf7043743c..8c783c252cb 100644 --- a/tests/standalone_2/regress_52715_test.dart +++ b/tests/standalone_2/regress_52715_test.dart @@ -11,16 +11,16 @@ import 'dart:io'; import 'package:expect/expect.dart'; void main() async { - final startRss = ProcessInfo.currentRss; + final startRss = ProcessInfo.currentRss; //# measure: ok for (var i = 0; i < 1024; i++) { final subscription = Directory.systemTemp.watch().listen((event) {}); await subscription.cancel(); } - final endRss = ProcessInfo.currentRss; - final allocatedBytes = (endRss - startRss); - final limit = 10 * 1024 * 1024; - Expect.isTrue(allocatedBytes < limit, - 'expected VM RSS growth to be below ${limit} but got ${allocatedBytes}'); + final endRss = ProcessInfo.currentRss; //# measure: continued + final allocatedBytes = (endRss - startRss); //# measure: continued + final limit = 10 * 1024 * 1024; //# measure: continued + Expect.isTrue(allocatedBytes < limit, //# measure: continued + 'expected VM RSS growth to be below ${limit} but got ${allocatedBytes}'); //# measure: continued }