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