SLIDER-622 test for failfast execution
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 @@
     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 {