blob: 26344382fc56c84f9ebf1bfa774cca451948ede5 [file] [log] [blame]
* Copyright (c) 2017, 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.
* @assertion ProcessResult(int pid, int exitCode, stdout, stderr)
* @description Checks that if constructor [ProcessResult] creates a new object
* of type ProcessResult with same parameters as ProcessResult received after
* completion Process.rumSync method, this two objects are not equal.
* @author
import "dart:io";
import "../../../Utils/expect.dart";
main() {
String command = Platform.resolvedExecutable;
List<String> args = ['--version'];
ProcessResult processResult = Process.runSync(command, args);
ProcessResult pr = new ProcessResult(,
processResult.exitCode, processResult.stdout, processResult.stderr);
Expect.isFalse(processResult == pr);