[PATCH 5/6] tests: fix a typo in tests.h

Dmitry V. Levin ldv at altlinux.org
Thu Mar 10 22:25:00 UTC 2022


On Thu, Mar 10, 2022 at 09:01:05PM +0900, Masatake YAMATO wrote:
> * tests/tests.h: Fix the condition wrapping the
> defintion for error_msg_and_fail().
> 
> Signed-off-by: Masatake YAMATO <yamato at redhat.com>
> ---
>  tests/tests.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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

Applied, thanks!


-- 
ldv


More information about the Strace-devel mailing list