mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
net-misc/FORT-validator: patch out online test
Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
@@ -33,11 +33,11 @@ BDEPEND="
|
|||||||
sys-devel/automake
|
sys-devel/automake
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PATCHES="${FILESDIR}/${PN}-skip-online-test.patch"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
rm test/http* || die
|
|
||||||
|
|
||||||
eautoreconf
|
eautoreconf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user