From 351090f95de447c0d820bb02eb40889ab78b0736 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 18 Jun 2015 19:15:16 +0900 Subject: [PATCH] Evas tests: Fix failing test due to API change The new Lua color function is more lax than before, and invalid color names will default to black without failing. --- src/tests/evas/evas_test_filters.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/evas/evas_test_filters.c b/src/tests/evas/evas_test_filters.c index 0b72d7c77d..ac40d0517d 100644 --- a/src/tests/evas/evas_test_filters.c +++ b/src/tests/evas/evas_test_filters.c @@ -183,12 +183,15 @@ START_TEST(evas_filter_parser) "White" }; +#if 0 + // New color class defaults to black static const char *colors_bad[] = { "newcolor", "ABC", "#ZZZ", "#-10" }; +#endif for (size_t c = 0; c < sizeof(colors) / sizeof(colors[0]); c++) { @@ -197,6 +200,7 @@ START_TEST(evas_filter_parser) CHKGOOD(buf); } +#if 0 fprintf(stderr, "Evas filters tests: start invalid cases. Ignore the following ERRs.\n"); for (size_t c = 0; c < sizeof(colors_bad) / sizeof(colors_bad[0]); c++) { @@ -205,6 +209,7 @@ START_TEST(evas_filter_parser) CHKBAAD(buf); } fprintf(stderr, "Evas filters tests: end of invalid cases.\n"); +#endif // fillmodes are parsed when converting from instructions to commands }