Partly fix tests/whatnow/test-attach-detach: changes in detach and alist
[mmh] / test / tests / whatnow / test-attach-detach
index 8932bc3..82b25c6 100644 (file)
@@ -24,16 +24,17 @@ rm -f $expected $expectederr $actual $actualerr
 touch $expected $expectederr $actual $actualerr
 
 cat > $expected <<EOF
-baz's boz
+1      /XXX/baz's boz
 EOF
 
 # whatnow's exit status is always 1 so that is not a failure
 set +e
 echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
-echo "detach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
+echo "detach 1" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
 set -e
 
 diff -u $expectederr $actualerr
-diff -u $expected $actual
+<$actual sed 's,/.*/,/XXX/,' >$actual.clean
+diff -u $expected $actual.clean