aboutsummaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-24 14:04:18 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-24 14:04:18 +0200
commitda3ab6a60974f39de2db42ae8df42825ca608d93 (patch)
tree16545db5d5e00343136e7d291b3fb98384f248ba /tests/core
parent19d5d377df0c7ac75da9430d71b23133472d8ed4 (diff)
Disable two tests under core/sys/posix.
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/sys/posix/posix.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/core/sys/posix/posix.odin b/tests/core/sys/posix/posix.odin
index 772190a3a..84ba1ecea 100644
--- a/tests/core/sys/posix/posix.odin
+++ b/tests/core/sys/posix/posix.odin
@@ -214,7 +214,12 @@ test_stat :: proc(t: ^testing.T) {
stat: posix.stat_t
testing.expect_value(t, posix.stat(#file, &stat), posix.result.OK)
testing.expect(t, posix.S_ISREG(stat.st_mode))
+ // NOTE(Jeroen): This will possibly fail on WSL's `/mnt/<drive letter>` or other "network" mounts.
+ // It can even fail on a stock Ubuntu desktop running on real hardware depending on how the file perms are set,
+ // so this test is commented out.
+ /*
testing.expect_value(t, stat.st_mode, posix.mode_t{.IROTH, .IRGRP, .IRUSR, .IWUSR, .IFREG})
+ */
CONTENT := #load(#file)
testing.expect_value(t, stat.st_size, posix.off_t(len(CONTENT)))
@@ -262,6 +267,11 @@ open_permissions :: proc(t: ^testing.T) {
res := posix.fstat(fd, &stat)
testing.expectf(t, res == .OK, "failed to stat: %v", posix.strerror())
+ // NOTE(Jeroen): This will possibly fail on WSL's `/mnt/<drive letter>` or other "network" mounts.
+ // It can even fail on a stock Ubuntu desktop running on real hardware depending on how the file perms are set,
+ // so this test is commented out.
+ /*
stat.st_mode -= posix.S_IFMT
testing.expect_value(t, stat.st_mode, in_mode)
+ */
}