summaryrefslogtreecommitdiff
path: root/locate/testsuite/locate.gnu/notexists2.exp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-12-28 21:37:38 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-12-28 21:37:38 +0000
commitd7fdaf4d3a9795a294e93cad6f7d8238ba3754a6 (patch)
tree9bff05ea75330b7d8e2ade183cdcd1e4282f27d9 /locate/testsuite/locate.gnu/notexists2.exp
downloadfindutils-tarball-d7fdaf4d3a9795a294e93cad6f7d8238ba3754a6.tar.gz
Diffstat (limited to 'locate/testsuite/locate.gnu/notexists2.exp')
-rw-r--r--locate/testsuite/locate.gnu/notexists2.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/locate/testsuite/locate.gnu/notexists2.exp b/locate/testsuite/locate.gnu/notexists2.exp
new file mode 100644
index 0000000..1ff42f6
--- /dev/null
+++ b/locate/testsuite/locate.gnu/notexists2.exp
@@ -0,0 +1,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" }