1*ec7c50bfSpedro#!/bin/sh 2*ec7c50bfSpedro# $FreeBSD: src/tools/regression/fstest/tests/rename/03.t,v 1.1 2007/01/17 01:42:10 pjd Exp $ 3*ec7c50bfSpedro 4*ec7c50bfSpedrodesc="rename returns ENOENT if a component of the 'from' path does not exist, or a path prefix of 'to' does not exist" 5*ec7c50bfSpedro 6*ec7c50bfSpedron0=`namegen` 7*ec7c50bfSpedron1=`namegen` 8*ec7c50bfSpedron2=`namegen` 9*ec7c50bfSpedro 10*ec7c50bfSpedroexpect 0 mkdir ${n0} 0755 11*ec7c50bfSpedroexpect ENOENT rename ${n0}/${n1}/test ${n2} 12*ec7c50bfSpedroexpect 0 create ${n2} 0644 13*ec7c50bfSpedroexpect ENOENT rename ${n2} ${n0}/${n1}/test 14*ec7c50bfSpedroexpect 0 unlink ${n2} 15*ec7c50bfSpedroexpect 0 rmdir ${n0} 16