void-packages/srcpkgs/apr/patches/partial-disable-test.patch

52 lines
1.3 KiB
Diff

musl never unload libraries
--- a/test/testdso.c
+++ b/test/testdso.c
@@ -117,6 +117,7 @@ static void test_dso_sym_return_value(ab
static void test_unload_module(abts_case *tc, void *data)
{
+#ifdef __GLIBC__
apr_dso_handle_t *h = NULL;
apr_status_t status;
char errstr[256];
@@ -131,6 +132,7 @@ static void test_unload_module(abts_case
status = apr_dso_sym(&func1, h, "print_hello");
ABTS_INT_EQUAL(tc, 1, APR_STATUS_IS_ESYMNOTFOUND(status));
+#endif
}
@@ -203,6 +205,7 @@ static void test_dso_sym_return_value_li
static void test_unload_library(abts_case *tc, void *data)
{
+#ifdef __GLIBC__
apr_dso_handle_t *h = NULL;
apr_status_t status;
char errstr[256];
@@ -217,6 +220,7 @@ static void test_unload_library(abts_cas
status = apr_dso_sym(&func1, h, "print_hello");
ABTS_INT_EQUAL(tc, 1, APR_STATUS_IS_ESYMNOTFOUND(status));
+#endif
}
#endif /* def(LIB_NAME) */
--- a/test/testsockets.c
+++ b/test/testsockets.c
@@ -228,10 +228,13 @@ abts_suite *testsockets(abts_suite *suit
abts_run_test(suite, tcp6_socket, NULL);
abts_run_test(suite, udp6_socket, NULL);
+#define BROKEN_IN_CI 1
+#if BROKEN_IN_CI
abts_run_test(suite, sendto_receivefrom6, NULL);
#endif
abts_run_test(suite, socket_userdata, NULL);
+#endif
return suite;
}