Skip to content

Commit

Permalink
tests: skip an assertion in os_stat_test.v on OpenBSD (fix #22123) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcheylus authored Aug 28, 2024
1 parent 05c7aa2 commit 84135d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/os/os_stat_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ fn test_stat() {
dstat := os.stat(temp_dir)!
assert dstat.get_filetype() == .directory
assert fstat.dev == dstat.dev, 'File and directory should be created on same device'
$if !freebsd {
$if !freebsd && !openbsd {
assert fstat.rdev == dstat.rdev, 'File and directory should have same device ID'
} $else {
// On FreeBSD, the rdev values are not necessarily the same for non-devices
// On FreeBSD and OpenBSD, the rdev values are not necessarily the same for non-devices
// such as regular files and directories.
// assert fstat.rdev != dstat.rdev, 'File and directory should not have same device ID'
// However, see also https://discord.com/channels/592103645835821068/592114487759470596/1222322061217632347 :
Expand Down

0 comments on commit 84135d7

Please sign in to comment.