652a8be7a7
When tests are executed on certain configurations like dartkb or simarm, the test script is first compiled into a dill file, so the VM command line for running a test looks like dart .../generated_compilations/dartkb/foo_test/out.dill Certain tests have the logic to replace '_test.dart' in Platform.script with '_test_body.dart' and execute the resulting script. However, as out.dill does not contain '_test.dart', the script remains the same after replacement. As a result, test was infinitely re-executing itself, overloading bots and not making any progress. Change-Id: I7257d3553a7f0a0de2f6d8218a9eb5c8981af17d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98685 Commit-Queue: Ryan Macnak <rmacnak@google.com> Auto-Submit: Alexander Markov <alexmarkov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
17 lines
574 B
Dart
17 lines
574 B
Dart
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
// 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.
|
|
|
|
// OtherResources=appjit_load_static_licm_test_body.dart
|
|
|
|
// Verify that app-jit snapshot contains dependencies between classes and CHA
|
|
// optimized code.
|
|
|
|
import 'dart:async';
|
|
import 'dart:io' show Platform;
|
|
|
|
import 'snapshot_test_helper.dart';
|
|
|
|
Future<void> main() => runAppJitTest(
|
|
Platform.script.resolve('appjit_load_static_licm_test_body.dart'));
|