diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-02 15:34:13 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-06-02 15:34:13 -0400 |
| commit | 3f1249c27e6364896d801cbbfe7edaf12f69cf37 (patch) | |
| tree | c8568703b6ec6945a446452a62d9761483accdc6 /core/testing/runner.odin | |
| parent | 8d8c42e9625b234e181dd8b7d16875ad5140d2ad (diff) | |
Tell user about `ODIN_TEST_RANDOM_SEED` option
Diffstat (limited to 'core/testing/runner.odin')
| -rw-r--r-- | core/testing/runner.odin | 6 |
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 { |