blob: 01faae997c06abc08c1b3a033fb8c5913f54fea5 [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 int pid
*
* Returns the process id of the process.
*
* @description Checks that [pid] returns int value that is the process id of
* the process.
* @author ngl@unipro.ru
*/
import "dart:io";
import "../../../Utils/expect.dart";
String command;
List<String> args;
void setCommand() {
command = Platform.resolvedExecutable;
args = ['--version'];
}
main() {
setCommand();
asyncStart();
Process.start(command, args).then((Process process) {
Expect.isTrue(process.pid != 0);
asyncEnd();
});
}