1 # This test checks that https://github.com/hercules-team/augeas/issues/397 is
2 # fixed. It would otherwise lead to a segfault in augtool
4 if [ -z "$abs_top_builddir" ]; then
5 echo "abs_top_builddir is not set"
9 if [ -z "$abs_top_srcdir" ]; then
10 echo "abs_top_srcdir is not set"
14 ROOT=$abs_top_builddir/build/test-span-rec-lens
15 LENSES=$abs_top_srcdir/lenses
17 FILE=$ROOT/etc/default/im-config
20 mkdir -p $(dirname $FILE)
29 # If bug 397 is not fixed, this will abort because of memory corruption
30 augtool --nostdinc -I $LENSES -r $ROOT --span rm /files >/dev/null