"Fossies" - the Fresh Open Source Software Archive

Member "lessfs-1.7.0/regression/pjd-fstest-20080816-lessfs/tests/rmdir/04.t" (29 Mar 2008, 348 Bytes) of package /linux/misc/old/lessfs-1.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # $FreeBSD: src/tools/regression/fstest/tests/rmdir/04.t,v 1.1 2007/01/17 01:42:11 pjd Exp $
    3 
    4 desc="rmdir returns ENOENT if the named directory does not exist"
    5 
    6 dir=`dirname $0`
    7 . ${dir}/../misc.sh
    8 
    9 echo "1..4"
   10 
   11 n0=`namegen`
   12 n1=`namegen`
   13 
   14 expect 0 mkdir ${n0} 0755
   15 expect 0 rmdir ${n0}
   16 expect ENOENT rmdir ${n0}
   17 expect ENOENT rmdir ${n1}