diff --git a/tests/test3.in b/tests/test3.in
index 3fccaa03d..1d52da798 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -103,7 +103,7 @@ end
 
 # Test if exported variables go out of scope
 
-if test (fish -c "echo $t8") = foo
+if test (../fish -c "echo $t8") = foo
     echo Test 9 fail
 else
     echo Test 9 pass