Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests No semicolon after macro do ... while (0) wrapper.
details: https://anonhg.NetBSD.org/src/rev/2452e08d3f3e
branches: trunk
changeset: 320009:2452e08d3f3e
user: gson <gson%NetBSD.org@localhost>
date: Tue Jun 19 09:20:46 2018 +0000
description:
No semicolon after macro do ... while (0) wrapper.
diffstat:
tests/fs/common/h_fsmacros.h | 8 ++++----
tests/lib/libc/gen/t_dir.c | 4 ++--
tests/lib/libc/sys/t_posix_fadvise.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r be86dfbab278 -r 2452e08d3f3e tests/fs/common/h_fsmacros.h
--- a/tests/fs/common/h_fsmacros.h Tue Jun 19 07:23:44 2018 +0000
+++ b/tests/fs/common/h_fsmacros.h Tue Jun 19 09:20:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_fsmacros.h,v 1.41 2017/01/13 21:30:39 christos Exp $ */
+/* $NetBSD: h_fsmacros.h,v 1.42 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
atf_tc_fail_errno("newfs failed"); \
if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
atf_tc_fail_errno("mount failed"); \
-} while (/*CONSTCOND*/0);
+} while (/*CONSTCOND*/0)
#define FSTEST_CONSTRUCTOR_FSPRIV(_tc_, _fs_, _args_, _privargs_) \
do { \
@@ -91,7 +91,7 @@
atf_tc_fail_errno("newfs failed"); \
if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
atf_tc_fail_errno("mount failed"); \
-} while (/*CONSTCOND*/0);
+} while (/*CONSTCOND*/0)
#define FSTEST_DESTRUCTOR(_tc_, _fs_, _args_) \
do { \
@@ -101,7 +101,7 @@
} \
if (_fs_##_fstest_delfs(_tc_, _args_) != 0) \
atf_tc_fail_errno("delfs failed"); \
-} while (/*CONSTCOND*/0);
+} while (/*CONSTCOND*/0)
#define ATF_TC_FSADD(fs,type,func,desc) \
ATF_TC(fs##_##func); \
diff -r be86dfbab278 -r 2452e08d3f3e tests/lib/libc/gen/t_dir.c
--- a/tests/lib/libc/gen/t_dir.c Tue Jun 19 07:23:44 2018 +0000
+++ b/tests/lib/libc/gen/t_dir.c Tue Jun 19 09:20:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.10 2017/01/11 18:15:02 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.11 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
"creat(%s, %x) failed: %s", (x), (m), \
strerror(errno)); \
(void)close(_creat_fd); \
- } while(0);
+ } while (0)
ATF_REQUIRE_MSG(mkdir("t", 0755) == 0,
"mkdir failed: %s", strerror(errno));
diff -r be86dfbab278 -r 2452e08d3f3e tests/lib/libc/sys/t_posix_fadvise.c
--- a/tests/lib/libc/sys/t_posix_fadvise.c Tue Jun 19 07:23:44 2018 +0000
+++ b/tests/lib/libc/sys/t_posix_fadvise.c Tue Jun 19 09:20:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_posix_fadvise.c,v 1.2 2017/01/13 21:30:41 christos Exp $ */
+/* $NetBSD: t_posix_fadvise.c,v 1.3 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_posix_fadvise.c,v 1.2 2017/01/13 21:30:41 christos Exp $");
+__RCSID("$NetBSD: t_posix_fadvise.c,v 1.3 2018/06/19 09:20:46 gson Exp $");
#include <sys/fcntl.h>
@@ -112,7 +112,7 @@
ATF_CHECK_EQ_MSG(ret = (x), exp, "got: %d", ret); \
ATF_CHECK_EQ_MSG(errno, 999, "got: %s", strerror(errno)); \
errno = save; \
- } while (0);
+ } while (0)
CE(posix_fadvise(fd, 0, 0, -1), EINVAL);
CE(posix_fadvise(pipe_fds[0], 0, 0, POSIX_FADV_NORMAL), ESPIPE);
Home |
Main Index |
Thread Index |
Old Index