From 6c52f2b0faee02e2479d3500f75d020fcb08f3a2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 5 Jan 2016 22:37:42 +0000 Subject: [PATCH] tests/xstatx.c: use libtests * tests/xstatx.c: Use SKIP_MAIN_UNDEFINED. --- tests/xstatx.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/xstatx.c b/tests/xstatx.c index 7840190a..918ea0e1 100644 --- a/tests/xstatx.c +++ b/tests/xstatx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Dmitry V. Levin + * Copyright (c) 2015-2016 Dmitry V. Levin * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -25,9 +25,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#if defined TEST_SYSCALL_NAME \ - && defined HAVE_FTRUNCATE && defined HAVE_FUTIMENS +#if defined HAVE_FTRUNCATE && defined HAVE_FUTIMENS +# ifndef TEST_SYSCALL_NAME +# error TEST_SYSCALL_NAME must be defined +# endif # ifndef TEST_SYSCALL_INVOKE # error TEST_SYSCALL_INVOKE must be defined # endif @@ -314,10 +316,6 @@ main(void) #else -int -main(void) -{ - return 77; -} +SKIP_MAIN_UNDEFINED("HAVE_FTRUNCATE && HAVE_FUTIMENS") #endif -- 2.40.0