tests: factor 350 fail=0 initializations into test-lib.sh
[platform/upstream/coreutils.git] / tests / readlink / can-m
index 53528c2..80d3e2d 100755 (executable)
@@ -27,7 +27,6 @@ pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
 tmp=d
 
-fail=0
 mkdir $tmp || framework_failure
 cd $tmp || framework_failure
 
@@ -41,7 +40,6 @@ ln -s subdir/missing link4 || framework_failure
 
 cd "$pwd/$tmp/removed" || framework_failure
 
-fail=0
 # Skip this test if the system doesn't let you remove the working directory.
 if rmdir ../removed 2>/dev/null; then
   v=`readlink -e .` && fail=1