File: 01_broken_kfreebsd_tests.patch

package info (click to toggle)
capnproto 1.1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,388 kB
  • sloc: cpp: 22,665; sh: 4,660; ansic: 720; makefile: 551; xml: 275
file content (35 lines) | stat: -rw-r--r-- 1,122 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Disable broken tests on kfreebsd archs.
 Seems like a few tests for certain edge cases are broken on kfreebsd. This
 patch simply disables those tests.
Author: Tom Lee <debian@tomlee.co>
Forwarded: no
Last-Update: 2018-12-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/kj/filesystem-disk-test.c++
+++ b/src/kj/filesystem-disk-test.c++
@@ -204,7 +204,7 @@
 
 bool isWine() { return false; }
 
-#if __APPLE__ || __CYGWIN__
+#if __APPLE__ || __CYGWIN__ || defined(__FreeBSD_kernel__)
 #define HOLES_NOT_SUPPORTED 1
 #endif
 
@@ -823,6 +823,7 @@
   KJ_EXPECT(dir->openFile(Path("foo"))->readAllText() == "bazqux");
 }
 
+#if !defined(__FreeBSD_kernel__)
 KJ_TEST("DiskDirectory replace file with directory") {
   TempDir tempDir;
   auto dir = tempDir.get();
@@ -852,6 +853,7 @@
   // Replaced with directory.
   KJ_EXPECT(dir->openFile(Path({"foo", "bar"}))->readAllText() == "bazqux");
 }
+#endif
 
 #if !defined(HOLES_NOT_SUPPORTED) && (CAPNP_DEBUG_TYPES || CAPNP_EXPENSIVE_TESTS)
 // Not all filesystems support sparse files, and if they do, they don't necessarily support