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.
This commit is contained in:
Ludovic Courtès 2015-08-27 10:52:11 +02:00
parent d1f38287f4
commit 54e515eb75

View file

@ -197,6 +197,7 @@ (define (user-namespace pid)
(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