65c4d768f1
Changes are reformatting and using the nullable list element operator. Change-Id: Iea1f4d2fcb06056f14804c8fe8b33c0b4d9037f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/477561 Commit-Queue: Sigurd Meldgaard <sigurdm@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
30 lines
890 B
Dart
30 lines
890 B
Dart
// Copyright (c) 2024, 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.
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:expect/expect.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
// Passing --disable-dart-dev after a DartDev command should cause the VM to
|
|
// exit with an error, not cause a segfault.
|
|
//
|
|
// See https://github.com/dart-lang/sdk/issues/56592 for details.
|
|
|
|
Future<void> main() async {
|
|
test(
|
|
'Regression test for https://github.com/dart-lang/sdk/issues/56592',
|
|
() async {
|
|
final result = await Process.run(Platform.resolvedExecutable, [
|
|
'test',
|
|
'--disable-dart-dev',
|
|
]);
|
|
Expect.contains(
|
|
'Attempted to use --disable-dart-dev with a Dart CLI command.',
|
|
result.stderr,
|
|
);
|
|
},
|
|
);
|
|
}
|