summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2022-03-10 21:01:05 +0900
committerDmitry V. Levin <ldv@strace.io>2022-03-10 12:01:05 +0000
commite2ad44b6becf1497ae94bd6273e3d25f5d0b183e (patch)
treee998582e98bf96b298ed89d87a1c282001402db2
parentbd0a7eee6a797dbb74bdf86b0722bd8eef82606e (diff)
downloadstrace-e2ad44b6becf1497ae94bd6273e3d25f5d0b183e.tar.gz
tests: fix a typo in tests.h
* tests/tests.h (error_msg_and_fail): Fix the condition wrapping the definition. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Fixes: v4.21~95 "tests: add file:line to perror_msg_and_fail/error_msg_and_fail output"
-rw-r--r--tests/tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.h b/tests/tests.h
index c6d44d822..b1b22ce51 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -165,7 +165,7 @@ void perror_msg_and_skip(const char *, ...)
# define perror_msg_and_fail(fmt_, ...) \
perror_msg_and_fail("%s:%d: " fmt_, __FILE__, __LINE__, ##__VA_ARGS__)
# endif
-# ifndef perror_msg_and_fail
+# ifndef error_msg_and_fail
# define error_msg_and_fail(fmt_, ...) \
error_msg_and_fail("%s:%d: " fmt_, __FILE__, __LINE__, ##__VA_ARGS__)
# endif