Skip to content

Commit

Permalink
Issue #1239: in LibTest/io/Process/run_A01_t03 isDartkp is a getter now.
Browse files Browse the repository at this point in the history
  • Loading branch information
iarkh committed Dec 3, 2021
1 parent 0242ff0 commit e8e7993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibTest/io/Process/run_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import "dart:io";
import "../../../Utils/expect.dart";

bool isDartkp() {
bool get isDartkp {
var parts = Uri.file(Platform.resolvedExecutable).pathSegments;
String basename = parts[parts.length - 1];
var pos = basename.lastIndexOf('.');
Expand All @@ -51,7 +51,7 @@ main() {
asyncStart();
Process.run(executable, [file.path]).then((ProcessResult results) {
Expect.notEquals(0, results.exitCode);
if(!isDartkp()) {
if(!isDartkp) {
Expect.notEquals(255, results.exitCode);
} else {
Expect.equals(255, results.exitCode);
Expand Down

0 comments on commit e8e7993

Please sign in to comment.