summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/atf-c.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/regress/lib/libc/sys/atf-c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/sys/atf-c.h b/src/regress/lib/libc/sys/atf-c.h
index c10628be26..1a0f29d673 100644
--- a/src/regress/lib/libc/sys/atf-c.h
+++ b/src/regress/lib/libc/sys/atf-c.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: atf-c.h,v 1.3 2021/09/02 12:40:44 mbuhl Exp $ */ 1/* $OpenBSD: atf-c.h,v 1.4 2022/05/28 18:39:39 mbuhl Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> 3 * Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de>
4 * 4 *
@@ -80,7 +80,7 @@ ATF_TC_FUNCTIONS(fn)
80#define ATF_CHECK_STREQ ATF_REQUIRE_STREQ 80#define ATF_CHECK_STREQ ATF_REQUIRE_STREQ
81 81
82#define atf_req(exp, err, msg, ...) \ 82#define atf_req(exp, err, msg, ...) \
83 atf_require(exp, err, #exp, __FILE__, __LINE__, NULL) 83 atf_require(exp, err, #exp, __FILE__, __LINE__, msg, ##__VA_ARGS__)
84#define ATF_REQUIRE(exp) atf_req(exp, -1, NULL) 84#define ATF_REQUIRE(exp) atf_req(exp, -1, NULL)
85#define ATF_REQUIRE_ERRNO(no, exp) atf_req(exp, no, NULL) 85#define ATF_REQUIRE_ERRNO(no, exp) atf_req(exp, no, NULL)
86#define ATF_REQUIRE_MSG(exp, fmt, ...) atf_req(exp, -1, fmt, ##__VA_ARGS__) 86#define ATF_REQUIRE_MSG(exp, fmt, ...) atf_req(exp, -1, fmt, ##__VA_ARGS__)