* [PATCH] get_integer_valueof: Don't output value in test name
@ 2017-10-10 18:51 Simon Marchi
2017-10-10 19:02 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2017-10-10 18:51 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
The get_integer_valueof outputs the value it has read as part of the
test name. This causes test names to vary from run to run, and adds
some noise when diffing test results. e.g.:
-PASS: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid" (28770)
+PASS: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid" (32238)
This patch removes that, since it's probably not very useful.
gdb/testsuite/ChangeLog:
* lib/gdb.exp (get_integer_valueof): Don't output read value in test name.
---
gdb/testsuite/lib/gdb.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 48fec2f..9d8296a 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5634,7 +5634,7 @@ proc get_integer_valueof { exp default {test ""} } {
gdb_test_multiple "print /d ${exp}" "$test" {
-re "\\$\[0-9\]* = (\[-\]*\[0-9\]*).*$gdb_prompt $" {
set val $expect_out(1,string)
- pass "$test ($val)"
+ pass "$test"
}
timeout {
fail "$test (timeout)"
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] get_integer_valueof: Don't output value in test name
2017-10-10 18:51 [PATCH] get_integer_valueof: Don't output value in test name Simon Marchi
@ 2017-10-10 19:02 ` Pedro Alves
2017-10-10 19:10 ` Simon Marchi
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2017-10-10 19:02 UTC (permalink / raw)
To: Simon Marchi, gdb-patches
On 10/10/2017 07:51 PM, Simon Marchi wrote:
> The get_integer_valueof outputs the value it has read as part of the
> test name. This causes test names to vary from run to run, and adds
> some noise when diffing test results. e.g.:
>
> -PASS: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid" (28770)
> +PASS: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid" (32238)
Ideally, test result diffing tools would be ignoring
" (foo)" at the end test names, because that part is
not considered a part of the test name itself. It's
extra info. That's where we write "(timeout)", "(eof)",
etc. So for instance:
-PASS: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid"
+FAIL: gdb.threads/process-dies-while-detaching.exp: multi-process: continue: killed outside: get integer valueof "mypid" (timeout)
... this should be considered a regression, instead of a new FAIL and
a missing PASS.
I think the buildbot diffing script is correctly ignoring that
tail end "(foo)"s.
That said, I think it's still a good idea to make the gdb.sum output
more stable across passing runs, so that plain /usr/bin/diff also
works reasonable well.
>
> This patch removes that, since it's probably not very useful.
Since we can find the number in gdb.log if we need it, this
is fine with me.
Thanks,
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] get_integer_valueof: Don't output value in test name
2017-10-10 19:02 ` Pedro Alves
@ 2017-10-10 19:10 ` Simon Marchi
0 siblings, 0 replies; 3+ messages in thread
From: Simon Marchi @ 2017-10-10 19:10 UTC (permalink / raw)
To: Pedro Alves; +Cc: Simon Marchi, gdb-patches
On 2017-10-10 15:02, Pedro Alves wrote:
> On 10/10/2017 07:51 PM, Simon Marchi wrote:
>> The get_integer_valueof outputs the value it has read as part of the
>> test name. This causes test names to vary from run to run, and adds
>> some noise when diffing test results. e.g.:
>>
>> -PASS: gdb.threads/process-dies-while-detaching.exp: multi-process:
>> continue: killed outside: get integer valueof "mypid" (28770)
>> +PASS: gdb.threads/process-dies-while-detaching.exp: multi-process:
>> continue: killed outside: get integer valueof "mypid" (32238)
>
> Ideally, test result diffing tools would be ignoring
> " (foo)" at the end test names, because that part is
> not considered a part of the test name itself. It's
> extra info. That's where we write "(timeout)", "(eof)",
> etc. So for instance:
>
> -PASS: gdb.threads/process-dies-while-detaching.exp: multi-process:
> continue: killed outside: get integer valueof "mypid"
> +FAIL: gdb.threads/process-dies-while-detaching.exp: multi-process:
> continue: killed outside: get integer valueof "mypid" (timeout)
>
> ... this should be considered a regression, instead of a new FAIL and
> a missing PASS.
>
> I think the buildbot diffing script is correctly ignoring that
> tail end "(foo)"s.
>
> That said, I think it's still a good idea to make the gdb.sum output
> more stable across passing runs, so that plain /usr/bin/diff also
> works reasonable well.
Right, that's the idea.
>>
>> This patch removes that, since it's probably not very useful.
>
> Since we can find the number in gdb.log if we need it, this
> is fine with me.
Thanks, I'm pushing it.
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-10 19:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 18:51 [PATCH] get_integer_valueof: Don't output value in test name Simon Marchi
2017-10-10 19:02 ` Pedro Alves
2017-10-10 19:10 ` Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox