Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-unlink-error.sh
1 #!/bin/sh
2
3 # Make sure we don't delete files simply because there was an error reading
4 # them in
5
6 root=$abs_top_builddir/build/test-unlink-error
7 xinetd=$root/etc/xinetd.conf
8
9 rm -rf $root
10 mkdir -p $(dirname $xinetd)
11
12 cat > $xinetd <<EOF
13 intentional garbage
14 EOF
15
16 augtool --nostdinc -r $root -I $abs_top_srcdir/lenses > /dev/null <<EOF
17 clear /files
18 save
19 EOF
20
21 if [ ! -f $xinetd ] ; then
22   echo "Deleted xinetd.conf"
23   exit 1
24 fi