]> granicus.if.org Git - strace/commitdiff
tests/adjtimex.c: use libtests
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 4 Jan 2016 23:31:09 +0000 (23:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jan 2016 23:36:59 +0000 (23:36 +0000)
* tests/adjtimex.c (main): Use perror_msg_and_skip.

tests/adjtimex.c

index 316cefbb5f5911e6f48636787eb3ee871eb6d73b..50f77b681fdc94e1e13a9584426442d0983dc6ed 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
@@ -37,7 +37,7 @@ main(void)
        int state = adjtimex(&tx);
 
        if (state < 0)
-               return 77;
+               perror_msg_and_skip("adjtimex");
 
        printf("adjtimex\\(\\{modes=0, offset=%jd, freq=%jd, maxerror=%jd"
               ", esterror=%jd, status=%s, constant=%jd, precision=%jd"