Fix StandaloneSpawnStrategyTest.

This test tests tha failure behavior on non-OSX, not the correctness on OSX.
Let's not try make it do more than it signed up for.

--
MOS_MIGRATED_REVID=108982067
diff --git a/src/test/java/com/google/devtools/build/lib/standalone/StandaloneSpawnStrategyTest.java b/src/test/java/com/google/devtools/build/lib/standalone/StandaloneSpawnStrategyTest.java
index c4baaa2..715b792 100644
--- a/src/test/java/com/google/devtools/build/lib/standalone/StandaloneSpawnStrategyTest.java
+++ b/src/test/java/com/google/devtools/build/lib/standalone/StandaloneSpawnStrategyTest.java
@@ -191,7 +191,10 @@
   // Test an action with environment variables set indicating an action running on a darwin host 
   // system. Such actions should fail given the fact that these tests run on a non darwin
   // architecture.
-  public void testActionOnDarwin() throws Exception {
+  public void testIOSEnvironmentOnNonDarwin() throws Exception {
+    if (OS.getCurrent() == OS.DARWIN) {
+      return;
+    }
     Spawn spawn = new BaseSpawn.Local(Arrays.asList("/bin/sh", "-c", "echo $SDKROOT"),
         ImmutableMap.<String, String>of(AppleConfiguration.APPLE_SDK_VERSION_ENV_NAME, "8.4",
             AppleConfiguration.APPLE_SDK_PLATFORM_ENV_NAME, "iPhoneSimulator"),
@@ -199,16 +202,9 @@
 
     try {
       run(spawn);
-      if (OS.getCurrent() != OS.DARWIN) {
-        fail("action should fail due to being unable to resolve SDKROOT");
-      }
-
+      fail("action should fail due to being unable to resolve SDKROOT");
     } catch (ExecException e) {
-      if (OS.getCurrent() != OS.DARWIN) {
-        assertThat(e.getMessage()).contains("Cannot locate iOS SDK on non-darwin operating system");
-      } else {
-        fail("This test should pass on OSX.");
-      }
+      assertThat(e.getMessage()).contains("Cannot locate iOS SDK on non-darwin operating system");
     }
   }
 }