diff options
author | ngie <ngie@FreeBSD.org> | 2015-04-11 09:05:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-04-11 09:05:42 +0000 |
commit | 9292308b0f116e5bc3b49e00a01b19446a2ee352 (patch) | |
tree | 813b0a8aa611d04fed13533ea607ed8af141e24d /tools | |
parent | 4716abb1e97094430b15816bb9b7d23ff67d908e (diff) | |
download | FreeBSD-src-9292308b0f116e5bc3b49e00a01b19446a2ee352.zip FreeBSD-src-9292308b0f116e5bc3b49e00a01b19446a2ee352.tar.gz |
Integration tools/regression/vfs into the FreeBSD test suite
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/regression/vfs/trailing_slash.t | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/regression/vfs/trailing_slash.t b/tools/regression/vfs/trailing_slash.t deleted file mode 100755 index b1b8523..0000000 --- a/tools/regression/vfs/trailing_slash.t +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Tests vfs_lookup()'s handling of trailing slashes for symlinks that -# point to files. See kern/21768 for details. Fixed in r193028. -# - -testfile="/tmp/testfile-$$" -testlink="/tmp/testlink-$$" - -tests=" -$testfile:$testlink:$testfile:0 -$testfile:$testlink:$testfile/:1 -$testfile:$testlink:$testlink:0 -$testfile:$testlink:$testlink/:1 -$testfile/:$testlink:$testlink:1 -$testfile/:$testlink:$testlink/:1 -" - -touch $testfile || exit 1 -trap "rm $testfile $testlink" EXIT - -set $tests -echo "1..$#" -n=1 -for testspec ; do - ( - IFS=: - set $testspec - unset IFS - ln -fs "$1" "$2" || exit 1 - cat "$3" >/dev/null 2>&1 - ret=$? - if [ "$ret" -eq "$4" ] ; then - echo "ok $n" - else - echo "fail $n - expected $4, got $ret" - fi - ) - n=$((n+1)) -done |