[test] Speed-up slow isolate tests.

- Don't need to repeatedly verify function fingerprints for each isolate.
 - Fix test detecting when it runs under debug mode or a simulator.

Change-Id: Iace0ebc274d4c01561a4b563a420e80535b1ff59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313243
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
Ryan Macnak 2023-07-11 22:39:28 +00:00 committed by Commit Queue
parent 2a924955e2
commit 0ff8d76171
18 changed files with 20 additions and 20 deletions

View file

@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// SharedObjects=ffi_test_functions
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:ffi';

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification --disable-thread-pool-limit
// VMOptions=--disable_heap_verification --disable_thread_pool_limit --no_check_function_fingerprints
import 'dart:async';
import 'dart:math' as math;

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:math' as math;

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:math' as math;

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -2,7 +2,7 @@
// 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.
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -9,8 +9,8 @@ import 'dart:isolate';
export '../../../../../benchmarks/IsolateFibonacci/dart/IsolateFibonacci.dart'
show fibonacciRecursive;
final bool isDebugMode = Platform.script.path.contains('Debug');
final bool isSimulator = Platform.script.path.contains('SIM');
final bool isDebugMode = Platform.resolvedExecutable.contains('Debug');
final bool isSimulator = Platform.resolvedExecutable.contains('SIM');
final bool isArtificialReloadMode = Platform.executableArguments.any((arg) => [
'--hot-reload-rollback-test-mode',
'--hot-reload-test-mode'

View file

@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// SharedObjects=ffi_test_functions
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:ffi';

View file

@ -5,7 +5,7 @@
// @dart = 2.9
// SharedObjects=ffi_test_functions
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:ffi';

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification --disable-thread-pool-limit
// VMOptions=--disable_heap_verification --disable_thread_pool_limit --no_check_function_fingerprints
import 'dart:async';
import 'dart:math' as math;

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:math' as math;

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:math' as math;

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -4,7 +4,7 @@
// @dart = 2.9
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:isolate';

View file

@ -11,8 +11,8 @@ import 'dart:isolate';
export '../../../../../benchmarks/IsolateFibonacci/dart2/IsolateFibonacci.dart'
show fibonacciRecursive;
final bool isDebugMode = Platform.script.path.contains('Debug');
final bool isSimulator = Platform.script.path.contains('SIM');
final bool isDebugMode = Platform.resolvedExecutable.contains('Debug');
final bool isSimulator = Platform.resolvedExecutable.contains('SIM');
final bool isArtificialReloadMode = Platform.executableArguments.any((arg) => [
'--hot-reload-rollback-test-mode',
'--hot-reload-test-mode'

View file

@ -5,7 +5,7 @@
// @dart = 2.9
// SharedObjects=ffi_test_functions
// VMOptions=--disable-heap-verification
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
import 'dart:async';
import 'dart:ffi';