diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/os/file.odin | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/core/os/file.odin b/tests/core/os/file.odin index aed57c26c..99ae5b928 100644 --- a/tests/core/os/file.odin +++ b/tests/core/os/file.odin @@ -5,10 +5,9 @@ import "core:testing" @(test) test_clone :: proc(t: ^testing.T) { - joined, err := os.join_path({#directory, "file.odin"}, context.temp_allocator) - testing.expect_value(t, err, nil) - f: ^os.File - f, err = os.open(joined) + joined, j_err := os.join_path({#directory, "file.odin"}, context.temp_allocator) + testing.expect_value(t, j_err, nil) + f, err := os.open(joined) testing.expect_value(t, err, nil) testing.expect(t, f != nil) |