diff options
author | mortimer <> | 2021-06-09 19:42:46 +0000 |
---|---|---|
committer | mortimer <> | 2021-06-09 19:42:46 +0000 |
commit | e4b379651419e90f99fe07dd3514e4eeaa225d56 (patch) | |
tree | b60dd733d09f3f6e03c838a4c12d4e853bc58d5e /src/regress/lib/libc/sys | |
parent | abf71fee0026581e46075f835ce66e3c83c72777 (diff) | |
download | openbsd-e4b379651419e90f99fe07dd3514e4eeaa225d56.tar.gz openbsd-e4b379651419e90f99fe07dd3514e4eeaa225d56.tar.bz2 openbsd-e4b379651419e90f99fe07dd3514e4eeaa225d56.zip |
Enable libexecinfo regress.
Diffstat (limited to 'src/regress/lib/libc/sys')
-rw-r--r-- | src/regress/lib/libc/sys/atf-c.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libc/sys/atf-c.h b/src/regress/lib/libc/sys/atf-c.h index 740881485d..93e2026ca1 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.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: atf-c.h,v 1.2 2021/06/09 19:42:46 mortimer Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> | 3 | * Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> |
4 | * | 4 | * |
@@ -76,6 +76,7 @@ ATF_TC_FUNCTIONS(fn) | |||
76 | #define ATF_CHECK ATF_REQUIRE | 76 | #define ATF_CHECK ATF_REQUIRE |
77 | #define ATF_CHECK_MSG ATF_REQUIRE_MSG | 77 | #define ATF_CHECK_MSG ATF_REQUIRE_MSG |
78 | #define ATF_CHECK_EQ ATF_REQUIRE_EQ | 78 | #define ATF_CHECK_EQ ATF_REQUIRE_EQ |
79 | #define ATF_CHECK_STREQ ATF_REQUIRE_STREQ | ||
79 | 80 | ||
80 | #define atf_req(exp, err, msg, ...) \ | 81 | #define atf_req(exp, err, msg, ...) \ |
81 | atf_require(exp, err, #exp, __FILE__, __LINE__, NULL) | 82 | atf_require(exp, err, #exp, __FILE__, __LINE__, NULL) |
@@ -85,6 +86,8 @@ ATF_TC_FUNCTIONS(fn) | |||
85 | #define ATF_REQUIRE_EQ(a, b) atf_req((a) == (b), -1, NULL) | 86 | #define ATF_REQUIRE_EQ(a, b) atf_req((a) == (b), -1, NULL) |
86 | #define ATF_REQUIRE_EQ_MSG(a, b, fmt, ...) \ | 87 | #define ATF_REQUIRE_EQ_MSG(a, b, fmt, ...) \ |
87 | atf_req((a) == (b), -1, fmt, ##__VA_ARGS__) | 88 | atf_req((a) == (b), -1, fmt, ##__VA_ARGS__) |
89 | #define ATF_REQUIRE_STREQ(x, y) \ | ||
90 | ATF_REQUIRE_MSG(strcmp(x, y) == 0, "%s != %s (%s != %s)", #x, #y, x, y) | ||
88 | 91 | ||
89 | #define atf_tc_fail_nonfatal(fmt, ...) atf_tc_fail(fmt, ##__VA_ARGS__) | 92 | #define atf_tc_fail_nonfatal(fmt, ...) atf_tc_fail(fmt, ##__VA_ARGS__) |
90 | #define atf_tc_expect_fail(fmt, ...) \ | 93 | #define atf_tc_expect_fail(fmt, ...) \ |