3 # Copyright (C) 2002 by Martin Pool
5 # Call directly into unsafe_symlink and test its handling of various filenames
7 . $srcdir/testsuite/rsync.fns
10 result=`"$TOOLDIR/t_unsafe" "$1" "$2"` || test_fail "Failed to check $1 $2"
11 if [ "$result" != "$3" ]
13 test_fail "t_unsafe $1 $2 returned \"$result\", expected \"$3\""
19 test_unsafe foo foo safe
20 test_unsafe ../foo foo unsafe