Skip to content

Commit b735ef8

Browse files
stffrdhrnjeremybennett
authored andcommitted
testsuite/lib: Improve failure error message
Add the match string to the filure message to get better context into what test pattern is not matching. This helps a lot when tracking down bugs.
1 parent ad2b812 commit b735ef8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testsuite/lib/libsim.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc run_libsim { testname match_list libprog config or1kprog args } {
113113
}
114114

115115
eof {
116-
fail "$testname: hit EOF seeking match line $match_line";
116+
fail "$testname: hit EOF seeking match line $match_line: $matchstr";
117117
return
118118
}
119119

testsuite/lib/or1ksim.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ proc run_or1ksim { testname match_list config_file progname } {
136136
}
137137

138138
eof {
139-
fail "$testname: hit EOF seeking match line $match_line";
139+
fail "$testname: hit EOF seeking match line $match_line: $matchstr";
140140
return
141141
}
142142

0 commit comments

Comments
 (0)