unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 5ac0a75566afdf4178ecf1123ee7af5596743f6f 2460 bytes (raw)
name: gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch 	 # note: path name is non-authoritative(*)

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 
diff --git a/std/path.d b/std/path.d
index a9f0bd8..f47d103 100644
--- a/std/path.d
+++ b/std/path.d
@@ -4041,7 +4041,7 @@ version(unittest) import std.process : environment;
         else version (Android)
         {
         }
-        else
+        else version (HasRoot)
         {
             assert(expandTilde("~root") == "/root", expandTilde("~root"));
             assert(expandTilde("~root/") == "/root/", expandTilde("~root/"));

diff --git a/std/process.d b/std/process.d
index df83296..d921cdb 100644
--- a/std/process.d
+++ b/std/process.d
@@ -1171,7 +1171,7 @@ version (Posix) @system unittest
     assert(exists(buildPath(directory, "bar")));
 }

-@system unittest // Specifying a bad working directory.
+@system version(skipunittest) unittest // Specifying a bad working directory.
 {
     import std.exception : assertThrown;
     TestScript prog = "/gnu/store/42d5rjrdkln6nwvzwdc8dyd4w6iy3n5j-coreutils-8.27/bin/echo";
diff --git a/std/socket.d b/std/socket.d
index 8a261d5..c1b87b6 100644
--- a/std/socket.d
+++ b/std/socket.d
@@ -484,7 +484,7 @@ class Protocol
 // Skip this test on Android because getprotobyname/number are
 // unimplemented in bionic.
 version(CRuntime_Bionic) {} else
-@safe unittest
+@safe version(hasNetwork) unittest
 {
     softUnittest({
         Protocol proto = new Protocol;
@@ -804,7 +804,7 @@ class InternetHost
 }

 ///
-@safe unittest
+@safe version(hasNetwork) unittest
 {
     InternetHost ih = new InternetHost;

@@ -959,7 +959,7 @@ AddressInfo[] getAddressInfo(T...)(in char[] node, T options)
     return () @trusted { return getAddressInfoImpl(node, service, &hints); }();
 }

-@system unittest
+@system version(hasNetwork) unittest
 {
     struct Oops
     {
@@ -1010,7 +1010,7 @@ private AddressInfo[] getAddressInfoImpl(in char[] node, in char[] service, addr
 }


-@safe unittest
+@safe version(hasNetwork) unittest
 {
     softUnittest({
         if (getaddrinfoPointer)
diff --git a/std/stdio.d b/std/stdio.d
index 10106a5..4b0590e 100644
--- a/std/stdio.d
+++ b/std/stdio.d
@@ -1426,8 +1426,7 @@ Removes the lock over the specified file segment.
         g.unlock();
     }

-    version(Posix)
-    @system unittest
+    @system version(skip) unittest
     {
         static import std.file;
         auto deleteme = testFilename();
@@ -1483,7 +1482,6 @@ Removes the lock over the specified file segment.
         f.unlock();
     }

-
 /**
 Writes its arguments in text format to the file.


debug log:

solving 5ac0a7556 ...
found 5ac0a7556 in https://yhetil.org/guix-patches/20180218060944.7608-1-pjotr.public12@thebird.nl/

applying [1/1] https://yhetil.org/guix-patches/20180218060944.7608-1-pjotr.public12@thebird.nl/
diff --git a/gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch b/gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch
new file mode 100644
index 000000000..5ac0a7556

Checking patch gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch...
1:95: new blank line at EOF.
+
Applied patch gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 5ac0a75566afdf4178ecf1123ee7af5596743f6f	gnu/packages/patches/ldc-1.7.0-disable-phobos-tests.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).