guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: tests: Skip 'set-network-interface-address' test when running as


From: Ludovic Courtès
Subject: 02/03: tests: Skip 'set-network-interface-address' test when running as root.
Date: Thu, 27 Aug 2015 09:08:47 +0000

civodul pushed a commit to branch master
in repository guix.

commit 54e515eb75491f4d32219c223d4c753afb0d2c48
Author: Ludovic Courtès <address@hidden>
Date:   Thu Aug 27 10:52:11 2015 +0200

    tests: Skip 'set-network-interface-address' test when running as root.
    
    Reported by Eric Hanchrow <address@hidden>
    in <http://bugs.gnu.org/21354>.
    
    * tests/syscalls.scm ("set-network-interface-address"): Skip when (getuid)
      returns zero.
---
 tests/syscalls.scm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/syscalls.scm b/tests/syscalls.scm
index 090e1e7..86783b9 100644
--- a/tests/syscalls.scm
+++ b/tests/syscalls.scm
@@ -197,6 +197,7 @@
     (close-port sock)
     addr))
 
+(test-skip (if (zero? (getuid)) 1 0))
 (test-assert "set-network-interface-address"
   (let ((sock (socket AF_INET SOCK_STREAM 0)))
     (catch 'system-error



reply via email to

[Prev in Thread] Current Thread [Next in Thread]