From 6a3080fa58c6eeb5b4c055a0ec2c642e23ab7f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 4 Jun 2018 09:26:23 +0300 Subject: [PATCH] test: More clearly print errors in the NAN tests --- test/crt-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/crt-test.c b/test/crt-test.c index 8746b42..15f9945 100644 --- a/test/crt-test.c +++ b/test/crt-test.c @@ -66,7 +66,7 @@ const char *context = ""; tests++; \ if (!isnan(x)) { \ fails++; \ - printf("%s:%d: %s%s failed, got %f\n", __FILE__, __LINE__, context, #x, (double)x); \ + printf("%s:%d: %s%s failed, got %f, expected NAN\n", __FILE__, __LINE__, context, #x, (double)x); \ } \ } while (0)