test-dispatch: Make test of removed working directory work on AIX (
issue2315)
AIX sh won't delete its own working directory. Removing it from another process
works.
Also hide the actual OS error message - operating systems returns different
errors when getcwd fails.
#!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "hgk=" >> $HGRCPATH
hg init repo
cd repo
echo a > a
hg ci -Am adda
hg debug-cat-file commit 0