Browse Source

Merge pull request #3829 from Feoramund/fix-vetted-test-name

Let `-vet` be used with `-define:ODIN_TEST_NAMES`
Jeroen van Rijn 1 year ago
parent
commit
06652bebce
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/testing/runner.odin

+ 4 - 1
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