Skip to content

Commit 7368915

Browse files
committed
[GR-12877] Use assume to handle missing MX_SUBPROCESS_COMMAND_FILE.
PullRequest: graal/2559
2 parents 472a9ea + 5bc91fe commit 7368915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/org.graalvm.compiler.test/src/org/graalvm/compiler/test/SubprocessUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
import org.graalvm.compiler.serviceprovider.GraalServices;
4141
import org.graalvm.util.CollectionsUtil;
42+
import org.junit.Assume;
4243

4344
/**
4445
* Utility methods for spawning a VM in a subprocess during unit tests.
@@ -61,6 +62,8 @@ public static List<String> getProcessCommandLine() {
6162
return Files.readAllLines(new File(processArgsFile).toPath());
6263
} catch (IOException e) {
6364
}
65+
} else {
66+
Assume.assumeTrue("Process command line unavailable", false);
6467
}
6568
return null;
6669
}

0 commit comments

Comments
 (0)