aboutsummaryrefslogtreecommitdiff
path: root/core/testing
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 11:58:04 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 11:58:04 +0100
commit97c499dbb40deeef3778c9a20aa2b38d96aa46f1 (patch)
tree66b5ed8c30068770766d8183bfb0951986a628f0 /core/testing
parent1d75a612d54f102ef530c1f58546e3cdb239160c (diff)
Begin mapping `os.Error` in the rest of the codebase
Diffstat (limited to 'core/testing')
-rw-r--r--core/testing/runner.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index da0328f91..16967e3c7 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -868,8 +868,8 @@ To partly mitigate this, redirect STDERR to a file or use the -define:ODIN_TEST_
when ODIN_OS != .Windows {
mode = os.S_IRUSR|os.S_IWUSR|os.S_IRGRP|os.S_IROTH
}
- json_fd, errno := os.open(JSON_REPORT, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, mode)
- fmt.assertf(errno == os.ERROR_NONE, "unable to open file %q for writing of JSON report, error: %v", JSON_REPORT, errno)
+ json_fd, err := os.open(JSON_REPORT, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, mode)
+ fmt.assertf(err == nil, "unable to open file %q for writing of JSON report, error: %v", JSON_REPORT, err)
defer os.close(json_fd)
for test, i in report.all_tests {