File: sparc-skip-tcp_oob.diff

package info (click to toggle)
libuv1 1.51.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,772 kB
  • sloc: ansic: 74,890; makefile: 676; python: 189; sh: 51; javascript: 18
file content (19 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
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_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
   loop = uv_default_loop();