mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
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
23 lines
485 B
Bash
23 lines
485 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
desc="link returns ENAMETOOLONG if a component of either pathname exceeded 255 characters"
|
|
|
|
dir=`dirname $0`
|
|
. ${dir}/../misc.sh
|
|
|
|
echo "1..10"
|
|
|
|
n0=`namegen`
|
|
|
|
expect 0 create ${name255} 0644
|
|
expect 0 link ${name255} ${n0}
|
|
expect 0 unlink ${name255}
|
|
expect 0 link ${n0} ${name255}
|
|
expect 0 unlink ${n0}
|
|
expect 0 unlink ${name255}
|
|
|
|
expect 0 create ${n0} 0644
|
|
expect ENAMETOOLONG link ${n0} ${name256}
|
|
expect 0 unlink ${n0}
|
|
expect ENAMETOOLONG link ${name256} ${n0}
|