Skip to content

Commit 6d1a40a

Browse files
committed
Remove unnecessary unknown fallback for cur_test_file in instances.tcl
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 369fffc commit 6d1a40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/instances.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ proc test {descr code} {
436436
if {[string match "assertion:*" $error]} {
437437
set msg [string range $error 10 end]
438438
puts [colorstr red "FAILED: $msg"]
439-
lappend ::failed_tests [list $descr [expr {[info exists ::cur_test_file] ? $::cur_test_file : "unknown"}] $msg]
439+
lappend ::failed_tests [list $descr $::cur_test_file $msg]
440440
if {$::pause_on_error} pause_on_error
441441
puts [colorstr red "(Jumping to next unit after error)"]
442442
return -code continue

0 commit comments

Comments
 (0)