From 84135d733a45b6b9ff337e171bce03692115e906 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Wed, 28 Aug 2024 08:23:08 +0000 Subject: [PATCH] tests: skip an assertion in os_stat_test.v on OpenBSD (fix #22123) (#22124) --- vlib/os/os_stat_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/os/os_stat_test.v b/vlib/os/os_stat_test.v index 1c542cb61..01da38afe 100644 --- a/vlib/os/os_stat_test.v +++ b/vlib/os/os_stat_test.v @@ -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 : -- 2.39.5