35b31654ed
Fix tests to use '--verbosity=warning' so they don't produce extraneous output. Fixes https://github.com/dart-lang/sdk/issues/44738 TEST=Updating tests Change-Id: I5a02dca2efabd392ba690a4b13aa0dc4ba25dedb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181360 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
26 lines
746 B
Dart
26 lines
746 B
Dart
// Copyright (c) 2013, 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=print_sync_script.dart
|
|
|
|
import 'dart:io';
|
|
|
|
import "package:expect/expect.dart";
|
|
import "package:async_helper/async_helper.dart";
|
|
|
|
void main() {
|
|
asyncStart();
|
|
Process.run(
|
|
Platform.executable,
|
|
[]
|
|
..addAll(Platform.executableArguments)
|
|
..add('--verbosity=warning')
|
|
..add(
|
|
Platform.script.resolve('print_sync_script.dart').toFilePath()))
|
|
.then((out) {
|
|
asyncEnd();
|
|
Expect.equals(1002, out.stdout.split('\n').length);
|
|
});
|
|
}
|