aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-24 16:37:30 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-24 16:37:30 +0200
commitebdf2e17f3fa445b5c64f16e5c077c0e710b3463 (patch)
tree86a309875dcba72a442713da9656ab7333a8998c
parent8da5eaf4a25770558ed7b7b5ab32128557ef8d40 (diff)
Remove altogether.
-rw-r--r--tests/core/sys/posix/posix.odin17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/core/sys/posix/posix.odin b/tests/core/sys/posix/posix.odin
index 84ba1ecea..4564e23d2 100644
--- a/tests/core/sys/posix/posix.odin
+++ b/tests/core/sys/posix/posix.odin
@@ -214,13 +214,6 @@ 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)))
}
@@ -266,12 +259,4 @@ open_permissions :: proc(t: ^testing.T) {
stat: posix.stat_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)
- */
-}
+} \ No newline at end of file