SLIDER-622 test for failfast execution
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/63148ffc Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/63148ffc Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/63148ffc Branch: refs/heads/feature/SLIDER-622-windows Commit: 63148ffc4a7a35535cf81541a740b37914bca1ab Parents: fc7fa31 Author: Steve Loughran <[email protected]> Authored: Mon Nov 10 16:55:18 2014 +0000 Committer: Steve Loughran <[email protected]> Committed: Mon Nov 10 16:55:18 2014 +0000 ---------------------------------------------------------------------- .../org/apache/slider/common/tools/TestWindowsSupport.groovy | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/63148ffc/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy b/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy index d7f4121..51c73b2 100644 --- a/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/common/tools/TestWindowsSupport.groovy @@ -117,6 +117,12 @@ class TestWindowsSupport extends SliderTestBase { exec(0, ["xargs", "--version"]) } + @Test + public void testExecNonexistentBinary() throws Throwable { + assume(Shell.WINDOWS, "not windows") + exec(2, ["undefined-application", "--version"]) + } + @Test public void testEmitKillCommand() throws Throwable {
