From 013992d9cdfc03ae52f9843f6cad467e450ca5e9 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 23 Sep 2015 13:30:08 -0700 Subject: [PATCH] Removed asprintf::invalid test --- test/asprintf.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/asprintf.c b/test/asprintf.c index 2640555..0fa34d9 100644 --- a/test/asprintf.c +++ b/test/asprintf.c @@ -54,17 +54,3 @@ Theory((struct format_test *fmt), asprintf, valid) { free(actual); } - -#if defined(__linux__) || defined(__APPLE__) -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wformat" -# endif -# define ASPRINTF_INVALID_DISABLED 0 -#else -# define ASPRINTF_INVALID_DISABLED 1 -#endif - -Test(asprintf, invalid, .disabled = ASPRINTF_INVALID_DISABLED) { - char *actual; - cr_expect_lt(cr_asprintf(&actual, "%"), 0); -}