]> granicus.if.org Git - strace/commitdiff
tests/xstatx.c: use libtests
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jan 2016 22:37:42 +0000 (22:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jan 2016 22:37:42 +0000 (22:37 +0000)
* tests/xstatx.c: Use SKIP_MAIN_UNDEFINED.

tests/xstatx.c

index 7840190a6f404713a2eccb3711f24fc31990c498..918ea0e1f56d588a4e0757c8b264958a04c576e3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * 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