From e8e799303fdb883a98210d9b7679f7916e2647e5 Mon Sep 17 00:00:00 2001 From: iarkh Date: Fri, 3 Dec 2021 12:31:22 +0700 Subject: [PATCH] Issue #1239: in LibTest/io/Process/run_A01_t03 isDartkp is a getter now. --- LibTest/io/Process/run_A01_t03.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibTest/io/Process/run_A01_t03.dart b/LibTest/io/Process/run_A01_t03.dart index 01552b738c..b18505893e 100644 --- a/LibTest/io/Process/run_A01_t03.dart +++ b/LibTest/io/Process/run_A01_t03.dart @@ -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('.'); @@ -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);