mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 03:10:06 +00:00
os2: skip dir test when unsupported
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package tests_core_os_os2
|
||||
|
||||
import os "core:os/os2"
|
||||
import "core:log"
|
||||
import "core:path/filepath"
|
||||
import "core:slice"
|
||||
import "core:testing"
|
||||
@@ -15,6 +16,11 @@ test_read_dir :: proc(t: ^testing.T) {
|
||||
|
||||
slice.sort_by_key(fis, proc(fi: os.File_Info) -> string { return fi.name })
|
||||
|
||||
if err == .Unsupported {
|
||||
log.warn("os2 directory functionality is unsupported, skipping test")
|
||||
return
|
||||
}
|
||||
|
||||
testing.expect_value(t, err, nil)
|
||||
testing.expect_value(t, len(fis), 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user