diff options
author | Ben Elliston <bje@gnu.org> | 2016-03-29 10:52:29 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2016-03-29 10:52:29 +1100 |
commit | 85e283265453b698f1f5a22b2eeedc0c05aafe91 (patch) | |
tree | 9e9a52b78d6078cc5cd9512699015d42f016d5d4 /lib/dg.exp | |
parent | 569f8718b534a2cd9511a7d640352eb0126ff492 (diff) | |
download | dejagnu-85e283265453b698f1f5a22b2eeedc0c05aafe91.zip dejagnu-85e283265453b698f1f5a22b2eeedc0c05aafe91.tar.gz dejagnu-85e283265453b698f1f5a22b2eeedc0c05aafe91.tar.bz2 |
More fixes identified by the Frink static analyser:
(1) use -- in switch commands for safety,
(2) add braces around exprs,
(3) replace abbreviated "info proc" with "info procs",
(4) use -- in regexp commands for safety where the expression is a
variable that could begin with '-'.
Diffstat (limited to 'lib/dg.exp')
-rw-r--r-- | lib/dg.exp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -569,7 +569,7 @@ proc dg-runtest { testcases options default-extra-options } { # proc dg-trim-dirname { dir_name file_name } { set special_character "\[\?\+\-\.\(\)\$\|\]" - regsub -all $special_character $dir_name "\\\\&" dir_name + regsub -all -- $special_character $dir_name "\\\\&" dir_name regsub "^$dir_name/?" $file_name "" file_name return $file_name } @@ -587,7 +587,7 @@ proc dg-test { args } { global dg-do-what-default dg-interpreter-batch-mode dg-linenum-format global errorCode errorInfo global tool - global srcdir ;# eg: /calvin/dje/build/gcc/./testsuite/ + global srcdir global host_triplet target_triplet set keep 0 |