You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/12/29 15:09:18 UTC
(commons-exec) 02/02: TODO Fix tests for Windows & Linux
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-exec.git
commit 2ce0d925b931d504acce2753c98afbc45d77fb48
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Dec 29 10:09:12 2023 -0500
TODO Fix tests for Windows & Linux
---
src/test/java/org/apache/commons/exec/issues/Exec65Test.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/exec/issues/Exec65Test.java b/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
index af9df9ae..8041de11 100644
--- a/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
+++ b/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
@@ -54,10 +54,7 @@ public class Exec65Test extends AbstractExecTest {
@Test
@Timeout(value = TEST_TIMEOUT, unit = TimeUnit.MILLISECONDS)
public void testExec65WithSleepUsingShellScript() throws Exception {
-
- if (!OS.isFamilyMac()) {
- throw new ExecuteException(testNotSupportedForCurrentOperatingSystem(), 0);
- }
+ assumeTrue(OS.isFamilyMac());
final DefaultExecutor executor = new DefaultExecutor();
executor.setStreamHandler(new PumpStreamHandler(System.out, System.err));
executor.setWatchdog(new ExecuteWatchdog(WATCHDOG_TIMEOUT));