me
/
guix
Archived
1
0
Fork 0

tests: Skip 'set-network-interface-address' test when running as root.

Reported by Eric Hanchrow <eric.hanchrow@gmail.com>
in <http://bugs.gnu.org/21354>.

* tests/syscalls.scm ("set-network-interface-address"): Skip when (getuid)
  returns zero.
master
Ludovic Courtès 2015-08-27 10:52:11 +02:00
parent d1f38287f4
commit 54e515eb75
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@
(close-port sock) (close-port sock)
addr)) addr))
(test-skip (if (zero? (getuid)) 1 0))
(test-assert "set-network-interface-address" (test-assert "set-network-interface-address"
(let ((sock (socket AF_INET SOCK_STREAM 0))) (let ((sock (socket AF_INET SOCK_STREAM 0)))
(catch 'system-error (catch 'system-error