Imported Upstream version 4.5.10
[platform/upstream/findutils.git] / find / testsuite / find.gnu / no-fdleak-test.exp
1 # Test with the FD leak check turned off.  We make this test, just to
2 # avoid failing to detect problems that only occur when the leak check
3 # is turned off.
4 set oldval $env(GNU_FINDUTILS_FD_LEAK_CHECK)
5 unset env(GNU_FINDUTILS_FD_LEAK_CHECK)
6
7 if { [ safe_path ] } {
8     exec rm -rf tmp
9     exec mkdir tmp tmp/fred tmp/jim
10     find_start p {tmp -name fred -execdir echo \{\} \; }
11     exec rm -rf tmp
12 }
13 set env(GNU_FINDUTILS_FD_LEAK_CHECK) $oldval