aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-28 15:58:22 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-28 15:58:22 -0400
commit574342af6fd8822a983cc99bafcfdc34e8e7793c (patch)
tree8a899908771640367ce10fe042a548ffb90a9453 /core
parent007832488dfb5538b506e2e7f587bf89d660a891 (diff)
Let `-vet` be used with `-define:ODIN_TEST_NAMES`
Diffstat (limited to 'core')
-rw-r--r--core/testing/runner.odin5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index 3510856c7..fffbb648c 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -198,8 +198,11 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
}
}
+ // `-vet` needs parameters to be shadowed by themselves first as an
+ // explicit declaration, to allow the next line to work.
+ internal_tests := internal_tests
// Intentional shadow with user-specified tests.
- internal_tests := select_internal_tests[:]
+ internal_tests = select_internal_tests[:]
}
total_failure_count := 0