[gardening] Make standalone/package/package_isolate_test a no-op in AOT.

The test relies on spawning some other dart helper scripts, which is not supported for AOT tests at the moment.

BUG=https://github.com/dart-lang/sdk/issues/53195
TEST=ci

Change-Id: Id083440227f5cf446c296c9ca561ab2147c0da75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320200
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Alexander Aprelev 2023-08-11 21:06:10 +00:00 committed by Commit Queue
parent 779fe017ba
commit 2cd2bed059
2 changed files with 17 additions and 1 deletions

View file

@ -13,6 +13,12 @@
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "../../../../third_party/pkg/path",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "lib1",
"rootUri": "../pkgs/lib1"

View file

@ -8,8 +8,11 @@
library package_isolate_test;
import 'pkgs/shared/shared.dart' as shared;
import 'dart:io';
import 'dart:isolate';
import 'package:path/path.dart' as path;
import 'pkgs/shared/shared.dart' as shared;
import '../../../pkg/async_helper/lib/async_helper.dart';
import '../../../pkg/expect/lib/expect.dart';
@ -26,6 +29,13 @@ ReceivePort expectResponse() {
}
void main() {
// No support for tests that attempt to Isolate.spawnUri() in AOT of some
// script other than self.
if (path.basenameWithoutExtension(Platform.executable) ==
"dart_precompiled_runtime") {
return;
}
{
final replyPort = expectResponse().sendPort;
shared.output = 'main';