diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-12-06 13:15:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-12-06 13:15:23 +0000 |
commit | 3522c0a675ab27e985e27aa29d0075ec8e698388 (patch) | |
tree | 352410472d0ac481976c0e9170ae62c1c61b5c0b /tools/regression/aio | |
parent | 51c6653f108f46000ec8a05080ebaa08252fbdd4 (diff) | |
download | FreeBSD-src-3522c0a675ab27e985e27aa29d0075ec8e698388.zip FreeBSD-src-3522c0a675ab27e985e27aa29d0075ec8e698388.tar.gz |
Print a warning if running as !root for aio_md_test rather than failing
the test. Privilege is required in order to allocate an md device.
Diffstat (limited to 'tools/regression/aio')
-rw-r--r-- | tools/regression/aio/aiotest/aiotest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/regression/aio/aiotest/aiotest.c b/tools/regression/aio/aiotest/aiotest.c index 56bc9a0..8769dc1 100644 --- a/tools/regression/aio/aiotest/aiotest.c +++ b/tools/regression/aio/aiotest/aiotest.c @@ -689,5 +689,9 @@ main(int argc, char *argv[]) aio_unix_socketpair_test(); aio_pty_test(); aio_pipe_test(); - aio_md_test(); + if (geteuid() == 0) + aio_md_test(); + else + fprintf(stderr, "WARNING: aio_md_test: skipped as euid " + "!= 0\n"); } |