From 35066aa596931ef84922298c2760ceba69940cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 27 May 2014 22:36:54 +0200 Subject: [PATCH] syscalls: Be more permissive in 'umount' test. * tests/syscalls.scm ("umount, ENOENT"): Rename to... ("umount, ENOENT/EPERM"): ... this. Accept EPERM as a valid return value. --- tests/syscalls.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/syscalls.scm b/tests/syscalls.scm index 5243ac9a34..ab34fc825b 100644 --- a/tests/syscalls.scm +++ b/tests/syscalls.scm @@ -33,13 +33,14 @@ #f) (compose system-error-errno list))) -(test-equal "umount, ENOENT" - ENOENT +(test-assert "umount, ENOENT/EPERM" (catch 'system-error (lambda () (umount "/does-not-exist") #f) - (compose system-error-errno list))) + (lambda args + ;; Both return values have been encountered in the wild. + (memv (system-error-errno args) (list EPERM ENOENT))))) (test-end)