public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH] Add selftest for pretty-print.c (v2)
@ 2016-06-09 12:21 David Edelsohn
  2016-06-09 12:48 ` Bernd Schmidt
  2016-06-09 16:19 ` [PATCH] PR bootstrap/71471: remove selftest for pp_format (%p) David Malcolm
  0 siblings, 2 replies; 12+ messages in thread
From: David Edelsohn @ 2016-06-09 12:21 UTC (permalink / raw)
  To: David Malcolm; +Cc: Bernd Schmidt, GCC Patches

This caused a bootstrap failure on AIX, and possible other architectures.

/tmp/20160608/./gcc/xgcc -B/tmp/20160608/./gcc/ -xc -S -c /dev/null -fself-test
/nasfarm/edelsohn/src/src/gcc/pretty-print.c:1246: FAIL: ASSERT_STREQ (expected,
 pp_formatted_text (&pp))
cc1: internal compiler error: in fail, at selftest.c:44

This is a completely unacceptable way to introduce these self-tests.
Please stop adding self-tests that only are tested on x86 Linux and
cause bootstrap failures.

Thanks, David

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [PATCH] Add selftest for pretty-print.c
@ 2016-06-07 10:03 Bernd Schmidt
  2016-06-08  0:30 ` [PATCH] Add selftest for pretty-print.c (v2) David Malcolm
  0 siblings, 1 reply; 12+ messages in thread
From: Bernd Schmidt @ 2016-06-07 10:03 UTC (permalink / raw)
  To: David Malcolm, gcc-patches

On 06/06/2016 11:28 PM, David Malcolm wrote:
> +  assert_pp_format ("0xcafebabe", "%wx", (HOST_WIDE_INT)0xcafebabe);

More interesting tests would be to have multiple arguments to test that 
we really used the right size for the varargs. Maybe append a single %d 
arg with a unique bit pattern to all of them?

Otherwise ok.


Bernd

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

end of thread, other threads:[~2016-06-09 18:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-09 12:21 [PATCH] Add selftest for pretty-print.c (v2) David Edelsohn
2016-06-09 12:48 ` Bernd Schmidt
2016-06-09 13:02   ` David Edelsohn
2016-06-09 13:10     ` Jakub Jelinek
2016-06-09 13:30       ` David Edelsohn
2016-06-09 17:22         ` Jeff Law
2016-06-09 17:54           ` David Malcolm
2016-06-09 18:06             ` David Edelsohn
2016-06-09 16:19 ` [PATCH] PR bootstrap/71471: remove selftest for pp_format (%p) David Malcolm
2016-06-09 17:22   ` Jeff Law
  -- strict thread matches above, loose matches on Subject: below --
2016-06-07 10:03 [PATCH] Add selftest for pretty-print.c Bernd Schmidt
2016-06-08  0:30 ` [PATCH] Add selftest for pretty-print.c (v2) David Malcolm
2016-06-08  9:22   ` Bernd Schmidt

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).