-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
The test async/tioselectors contains the following code:
# chmod testDirectory to 0777
chmodPath(testDirectory, 0x1FF)0x1FF is 511 decimal and it seems that's what's passed in to posix.chmod, resulting in the following test failure on OpenBSD:
FAIL: tests/async/tioselectors.nim C
Test "tests/async/tioselectors.nim" in category "async"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
mexitcode: 1
Output:
tioselectors.nim(471) tioselectors
tioselectors.nim(324) vnode_test
tioselectors.nim(264) chmodPath
fatal.nim(48) sysFatal
Error: unhandled exception: value out of range: 511 [RangeError]
I'm not sure if I should just change the code to pass 777? If so, there's at least one other place in the same tets that seems suspicious: https://github.com/nim-lang/Nim/blob/devel/tests/async/tioselectors.nim#L381
Metadata
Metadata
Assignees
Labels
No labels