public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems with strub tests
@ 2023-12-20  4:40 Jeff Law
  2023-12-20  6:31 ` [PATCH] compare_tests: distinguish c-c++-common results by tool Alexandre Oliva
  2024-01-07  1:51 ` Problems with strub tests Hans-Peter Nilsson
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Law @ 2023-12-20  4:40 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-patches


So the strub tests in c-c++-common are problematical.  They get run 
twice, once for C, once for C++.  Yet the name of the test is the same 
in both runs. (by the name, I mean the name emitted into the dejagnu 
summary and log files).

Thus if you have a test in there which passes in one context, but fails 
in the other, comparison tools like contrib/compare_tests may 
erroneously report the tests as both a test which now fails, but passed 
before and a test which now passes but failed before.

It looks like some of the strub tests are currently known to fail with 
C++ and are triggering this problem


Ideally we'd include the c or c++ in the test name depending on which 
context its being run within.  That would be sufficient to resolve these 
problems and avoid them in the future.  It would also be sufficient to 
get all the tests to the point where their behavior is the same for both 
languages.

Not sure if the latter is reasonably in the cards or not.  If it's not 
likely to land soon, any change you could look at the framework for 
c-c++-common and get the names unique across the two times they're run?

A third option would be to change the compare_tests tool to somehow 
distinguish between the C and C++ tests.  Not sure how feasible that is.

Thanks,
Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-07  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20  4:40 Problems with strub tests Jeff Law
2023-12-20  6:31 ` [PATCH] compare_tests: distinguish c-c++-common results by tool Alexandre Oliva
2023-12-20 17:17   ` Jeff Law
2024-01-07  1:51 ` Problems with strub tests Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).