53feb1d422
Almost all regression tests are based on very flexible fstest tool. They verify correctness (POSIX conformance) of almost all file system-related system calls. The motivation behind this work is my ZFS port and POSIX, who doesn't provide free test suites. Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS To try it out: # cd fstest # make # find tests/* -type d | xargs prove
22 lines
445 B
Bash
22 lines
445 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
desc="rename returns ENAMETOOLONG if a component of either pathname exceeded 255 characters"
|
|
|
|
dir=`dirname $0`
|
|
. ${dir}/../misc.sh
|
|
|
|
echo "1..8"
|
|
|
|
n0=`namegen`
|
|
|
|
expect 0 create ${name255} 0644
|
|
expect 0 rename ${name255} ${n0}
|
|
expect 0 rename ${n0} ${name255}
|
|
expect 0 unlink ${name255}
|
|
|
|
expect 0 create ${n0} 0644
|
|
expect ENAMETOOLONG rename ${n0} ${name256}
|
|
expect 0 unlink ${n0}
|
|
expect ENAMETOOLONG rename ${name256} ${n0}
|