[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
can't read "target_info(target,ldflags)": no such element in array
From: |
Tom de Vries |
Subject: |
can't read "target_info(target,ldflags)": no such element in array |
Date: |
Sat, 3 Jun 2017 19:07:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
The current failure in target.test is:
...
can't read "target_info(target,ldflags)": no such element in array
while executing
"if { $target_info(target,ldflags) == "-Tidp.ld" } {
incr matches
}"
(file "../src/testsuite/runtest.all/target.test" line 76)
...
The test fails here:
...
push_config target idp
set matches 0
if { $target_info(target,name) == "idp" } {
incr matches
}
if { $target_info(target,ldflags) == "-Tidp.ld" } {
incr matches
}
...
It seems that the test assumes that "push_config target idp" sets
$target_info(target,ldflags).
But looking at the implementation, it seems we just set
target_info(target,name):
...
proc push_config { type name } {
global target_info
verbose "pushing config for $type, name is $name"
if {[info exists target_info($type,name)]} {
if { $target_info($type,name) == $name } {
error "pushing config for $type, '$name' twice"
}
}
set target_info($type,name) $name
}
...
I'm not sure if the test is incorrect, or the proc.
Thanks,
- Tom
- can't read "target_info(target,ldflags)": no such element in array,
Tom de Vries <=