summaryrefslogtreecommitdiff
path: root/locate/testsuite/locate.gnu/notexists2.exp
blob: 1ff42f6905354150b52c38be959be71ad9c2c2df (plain)
1
2
3
4
5
6
7
8
# tests for -E: make sure we do print a file if it does not exist.
set tmp "tmp"
exec rm -rf $tmp
exec mkdir $tmp
exec mkdir $tmp/subdir
exec touch $tmp/subdir/fred1
exec touch $tmp/subdir/fred2
locate_start p "--changecwd=. --output=$tmp/locatedb --localpaths=tmp/subdir/" "--database=$tmp/locatedb -E fred" {} {} { exec rm "tmp/subdir/fred2" }