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.
This commit is contained in:
parent
5895f24443
commit
35066aa596
|
@ -33,13 +33,14 @@
|
||||||
#f)
|
#f)
|
||||||
(compose system-error-errno list)))
|
(compose system-error-errno list)))
|
||||||
|
|
||||||
(test-equal "umount, ENOENT"
|
(test-assert "umount, ENOENT/EPERM"
|
||||||
ENOENT
|
|
||||||
(catch 'system-error
|
(catch 'system-error
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(umount "/does-not-exist")
|
(umount "/does-not-exist")
|
||||||
#f)
|
#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)
|
(test-end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue