Package: libuv1 / 1.24.1-1

sparc-skip-tcp_oob.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Workaround for test failure on old sparc kernels
Forwarded: not-needed
Author: Luca BRUNO <lucab@debian.org>

--- a/test/test-tcp-oob.c
+++ b/test/test-tcp-oob.c
@@ -114,6 +114,12 @@
   struct sockaddr_in addr;
   uv_loop_t* loop;
 
+#if defined(__sparc__) && defined(__linux__)
+  fprintf(stderr, "Skipping test on Linux-sparc due to instability.\n");
+  fflush(stderr);
+  return TEST_SKIP;
+#endif
+
   ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
   loop = uv_default_loop();