mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
[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:
parent
2a924955e2
commit
0ff8d76171
18 changed files with 20 additions and 20 deletions
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// VMOptions=--disable-heap-verification
|
||||
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
|
||||
|
||||
import 'dart:isolate';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// VMOptions=--disable-heap-verification
|
||||
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
|
||||
|
||||
import 'dart:math' as math;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// VMOptions=--disable-heap-verification
|
||||
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
|
||||
|
||||
import 'dart:isolate';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// VMOptions=--disable-heap-verification
|
||||
// VMOptions=--disable_heap_verification --no_check_function_fingerprints
|
||||
|
||||
import 'dart:isolate';
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue