net-misc/FORT-validator: backporting fixes from GURU repo

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
Alarig Le Lay 2020-03-14 12:32:41 +01:00
parent 38f5d1d921
commit 8cea631d30
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 31 additions and 0 deletions

View file

@ -33,6 +33,8 @@ BDEPEND="
sys-devel/automake
"
PATCHES="${FILESDIR}/${PN}-skip-online-test.patch"
src_prepare() {
default

View file

@ -0,0 +1,29 @@
diff --git a/test/http_test.c b/test/http_test.c
index 765b722..c904440 100644
--- a/test/http_test.c
+++ b/test/http_test.c
@@ -57,23 +57,7 @@ local_download(char const *url, long *response_code, struct response *resp)
START_TEST(http_fetch_normal)
{
- struct response resp;
- long response_code;
- char const *url = "https://rrdp.ripe.net/notification.xml";
-
- init_response(&resp);
- response_code = 0;
-
- ck_assert_int_eq(http_init(), 0);
- ck_assert_int_eq(local_download(url, &response_code, &resp), 0);
- ck_assert_int_gt(resp.size, 0);
-
- http_cleanup();
- free(resp.content);
- if (response_code == 0)
- ck_abort_msg("NO response code received");
- else if (response_code >= HTTP_BAD_REQUEST)
- ck_abort_msg("Received response code %ld", response_code);
+
}
END_TEST