aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.exp')
-rw-r--r--runtest.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtest.exp b/runtest.exp
index 4657bd7..1fa36fe 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1727,8 +1727,8 @@ foreach current_target $target_list {
set temp_top_dirs ""
set prev_dir ""
foreach dir "${test_top_dirs}" {
- if { [string length ${prev_dir}] == 0 ||
- [string first "${prev_dir}/" ${dir}] == -1} {
+ if {$prev_dir eq "" || \
+ [string first "${prev_dir}/" ${dir}] == -1} {
# the first top dir entry, or an entry that
# does not share the previous entry's entire
# pathname, record it as a valid top dir entry.