diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-09 05:35:46 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-09 05:35:46 +0000 |
commit | dcd31244e8ecc492a511e48ed4c631615e092491 (patch) | |
tree | 9651a748c83288640926c2d597a2e1b13816acc4 /tools/regression | |
parent | 51e48e07fddf9730600dec32c469c760f731bed5 (diff) | |
parent | 81405113199dc2ec33e9cd60464efa5f2423a65c (diff) | |
download | FreeBSD-src-dcd31244e8ecc492a511e48ed4c631615e092491.zip FreeBSD-src-dcd31244e8ecc492a511e48ed4c631615e092491.tar.gz |
MFhead @ r292005
Diffstat (limited to 'tools/regression')
-rwxr-xr-x | tools/regression/mac/mac_portacl/misc.sh | 3 | ||||
-rw-r--r-- | tools/regression/tls/ttls2/ttls2.c | 10 | ||||
-rw-r--r-- | tools/regression/tls/ttls4/ttls4.c | 7 |
3 files changed, 14 insertions, 6 deletions
diff --git a/tools/regression/mac/mac_portacl/misc.sh b/tools/regression/mac/mac_portacl/misc.sh index 0fabe15..a1f152b 100755 --- a/tools/regression/mac/mac_portacl/misc.sh +++ b/tools/regression/mac/mac_portacl/misc.sh @@ -3,8 +3,7 @@ sysctl security.mac.portacl >/dev/null 2>&1 if [ $? -ne 0 ]; then - echo "1..1" - echo "not ok 1 # MAC_PORTACL is unavailable." + echo "1..0 # SKIP MAC_PORTACL is unavailable." exit 0 fi diff --git a/tools/regression/tls/ttls2/ttls2.c b/tools/regression/tls/ttls2/ttls2.c index f528e3d..15eb640 100644 --- a/tools/regression/tls/ttls2/ttls2.c +++ b/tools/regression/tls/ttls2/ttls2.c @@ -1,7 +1,8 @@ /* $FreeBSD$ */ -#include <stdio.h> #include <pthread.h> +#include <stdio.h> +#include <unistd.h> int __thread i; @@ -13,6 +14,7 @@ foo1(void *arg) printf("thread %p, i = %d\n", pthread_self(), i); sleep(1); } + return (NULL); } void * @@ -23,9 +25,11 @@ foo2(void *arg) printf("thread %p, i = %d\n", pthread_self(), i); sleep(1); } + return (NULL); } -int main(int argc, char** argv) +int +main(int argc, char** argv) { pthread_t t1, t2; @@ -33,4 +37,6 @@ int main(int argc, char** argv) pthread_create(&t2, 0, foo2, 0); pthread_join(t1, 0); pthread_join(t2, 0); + + return (0); } diff --git a/tools/regression/tls/ttls4/ttls4.c b/tools/regression/tls/ttls4/ttls4.c index d55e51b..914b220 100644 --- a/tools/regression/tls/ttls4/ttls4.c +++ b/tools/regression/tls/ttls4/ttls4.c @@ -9,11 +9,13 @@ #include <stdio.h> #include <pthread.h> +#include <stdlib.h> #include <unistd.h> int __thread n; -void *f1(void *arg) +void +*f1(void *arg) { if (n != 0) { printf("bug, n == %d \n", n); @@ -23,7 +25,8 @@ void *f1(void *arg) return (0); } -int main() +int +main(void) { pthread_t td; int i; |