aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/index-cache.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/index-cache.exp')
-rw-r--r--gdb/testsuite/gdb.base/index-cache.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/index-cache.exp b/gdb/testsuite/gdb.base/index-cache.exp
index a1f64b0..c7dbc46 100644
--- a/gdb/testsuite/gdb.base/index-cache.exp
+++ b/gdb/testsuite/gdb.base/index-cache.exp
@@ -29,8 +29,8 @@ if { [build_executable "failed to prepare" $testfile [list $srcfile $srcfile2] \
# - the binary already has an index section
# - we use the -readnow switch
set has_index_section [exec_has_index_section $binfile]
-set uses_readnow [expr [string first "-readnow" $GDBFLAGS] != -1]
-set expecting_index_cache_use [expr !$has_index_section && !$uses_readnow]
+set uses_readnow [expr {[string first "-readnow" $GDBFLAGS] != -1}]
+set expecting_index_cache_use [expr {!$has_index_section && !$uses_readnow}]
# List the files in DIR on the host (where GDB-under-test runs).
# Return a list of two elements: