aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 15:34:13 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 15:34:13 -0400
commit3f1249c27e6364896d801cbbfe7edaf12f69cf37 (patch)
treec8568703b6ec6945a446452a62d9761483accdc6 /core
parent8d8c42e9625b234e181dd8b7d16875ad5140d2ad (diff)
Tell user about `ODIN_TEST_RANDOM_SEED` option
Diffstat (limited to 'core')
-rw-r--r--core/testing/runner.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index fbe413bb2..5b80d0cf8 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -422,7 +422,11 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
"" if thread_count == 1 else "s")
}
- pkg_log.infof("The random seed sent to every test is: %v", shared_random_seed)
+ when SHARED_RANDOM_SEED == 0 {
+ pkg_log.infof("The random seed sent to every test is: %v. Set with -define:ODIN_TEST_RANDOM_SEED=n.", shared_random_seed)
+ } else {
+ pkg_log.infof("The random seed sent to every test is: %v.", shared_random_seed)
+ }
when TRACKING_MEMORY {
when ALWAYS_REPORT_MEMORY {