On some platforms, need to be out of $SPDIR in order to remove it.
authorDavid Levine <levinedl@acm.org>
Wed, 14 Mar 2012 00:58:33 +0000 (19:58 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 14 Mar 2012 00:58:33 +0000 (19:58 -0500)
So do that in test/whatnow/test-ls.

test/whatnow/test-ls

index f212e41..c289830 100755 (executable)
@@ -42,6 +42,8 @@ echo 'ls' | whatnow -noedit -prompt '' 2> "$actualerr" | sort > "$actual"
 check "$expectederr" "$actualerr"
 check "$expected" "$actual"
 
+# On some platforms, need to be out of $SPDIR in order to remove it.
+cd "$MH_TEST_DIR"
 test ${failed:-0} -eq 0  &&  rm -r "$SPDIR"
 
 exit $failed