From: Dmitry V. Levin Date: Wed, 6 Jan 2016 11:31:48 +0000 (+0000) Subject: tests/uio.c: use libtests X-Git-Tag: v4.12~703 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73aa88a619d32a96763e00996c378c376ffda19b;p=strace tests/uio.c: use libtests * tests/uio.c: Use SKIP_MAIN_UNDEFINED. --- diff --git a/tests/uio.c b/tests/uio.c index 3cf2f4c3..6291f972 100644 --- a/tests/uio.c +++ b/tests/uio.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2015 Dmitry V. Levin + * Copyright (c) 2014-2016 Dmitry V. Levin * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,15 +26,17 @@ */ #include "tests.h" -#include -#include -#include -#include + +#if defined(HAVE_PREADV) && defined(HAVE_PWRITEV) + +# include +# include +# include +# include int main(void) { -#if defined(HAVE_PREADV) && defined(HAVE_PWRITEV) const off_t offset = 0xdefaceddeadbeefLL; char buf[4]; struct iovec iov = { buf, sizeof buf }; @@ -51,7 +53,10 @@ main(void) assert(!close(0)); return 0; +} + #else - return 77; + +SKIP_MAIN_UNDEFINED("HAVE_PREADV && HAVE_PWRITEV") + #endif -}