diff options
-rw-r--r-- | tools/regression/netinet/rawconnect/rawconnect.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/regression/netinet/rawconnect/rawconnect.t b/tools/regression/netinet/rawconnect/rawconnect.t new file mode 100644 index 0000000..03f249d --- /dev/null +++ b/tools/regression/netinet/rawconnect/rawconnect.t @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +echo 1..1 + +comment="rawconnect # open raw ip socket, connect it and then close" + +uid=`id -u` + +if [ $uid -ne 0 ]; then + echo "ok 1 - rawconnect # skipped: you need to be root to run this test" +elif ./$executable; then + echo "ok 1 - $comment" +else + echo "not ok 1 - $comment" +fi |