aboutsummaryrefslogtreecommitdiff
path: root/test/testrunner_data.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'test/testrunner_data.tcl')
-rw-r--r--test/testrunner_data.tcl14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/testrunner_data.tcl b/test/testrunner_data.tcl
index 4685dabf5..2597cbe47 100644
--- a/test/testrunner_data.tcl
+++ b/test/testrunner_data.tcl
@@ -459,7 +459,7 @@ proc trd_fuzztest_data {} {
return [list fuzzcheck.exe $lFuzzDb]
}
- return [list fuzzcheck $lFuzzDb {sessionfuzz run} $lSessionDb]
+ return [list [trd_get_bin_name fuzzcheck] $lFuzzDb {sessionfuzz run} $lSessionDb]
}
@@ -688,3 +688,15 @@ proc trd_test_script_properties {path} {
set trd_test_script_properties_cache($path)
}
+
+# Usage:
+#
+# trd_get_bin_name executable-file-name
+#
+# If the tcl platform is "unix", return $bin, else return
+# ${bin}.exe.
+proc trd_get_bin_name {bin} {
+ global tcl_platform
+ if {"unix" eq $tcl_platform(platform)} {return $bin}
+ return $bin.exe
+}