From 4798ee88a2ce3d1049d8fe2ce286a34905899de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Sat, 20 Feb 2016 15:06:48 +0100 Subject: [PATCH] Add test suite support for list/tests/tests.txt --- tests/test-registrable-domain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-registrable-domain.c b/tests/test-registrable-domain.c index c9c3604..6a227e1 100644 --- a/tests/test-registrable-domain.c +++ b/tests/test-registrable-domain.c @@ -130,6 +130,11 @@ static void test_psl(void) } else if (sscanf(p, "checkPublicSuffix ( null , null ) %1[;]", semicolon) == 1) { d_is_null = 1; er_is_null = 1; + } else if (sscanf(p, "%127s %127s", domain, expected_regdom) == 2) { + if (!strcmp(domain, "null")) + d_is_null = 1; + if (!strcmp(expected_regdom, "null")) + er_is_null = 1; } else { failed++; printf("Malformed line from '" PSL_TESTFILE "': %s", buf);