public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* DejaGnu/GCC testsuite behavior regarding multiple 'dg-do'
@ 2020-05-13 10:26 Thomas Schwinge
  2020-05-13 16:51 ` dejagnu version update? Mike Stump
  0 siblings, 1 reply; 89+ messages in thread
From: Thomas Schwinge @ 2020-05-13 10:26 UTC (permalink / raw)
  To: gcc, ro, mikestump; +Cc: dejagnu

Hi!

Comparing DejaGnu/GCC testsuite '*.sum' files between two systems ("old"
vs. "new") that ought to return identical results, I found that they
didn't:

    @@ -75032,6 +75023,7 @@ PASS: g++.dg/expr/bitfield4.C  -std=c++98 (test for excess errors)
     PASS: g++.dg/expr/bitfield5.C  -std=c++14  (test for warnings, line 12)
     PASS: g++.dg/expr/bitfield5.C  -std=c++14  (test for warnings, line 16)
     PASS: g++.dg/expr/bitfield5.C  -std=c++14 (test for excess errors)
    +PASS: g++.dg/expr/bitfield5.C  -std=c++14 execution test
     PASS: g++.dg/expr/bitfield5.C  -std=c++17  (test for errors, line 12)
     PASS: g++.dg/expr/bitfield5.C  -std=c++17  (test for errors, line 16)
     PASS: g++.dg/expr/bitfield5.C  -std=c++17 (test for excess errors)
    @@ -75041,6 +75033,7 @@ PASS: g++.dg/expr/bitfield5.C  -std=c++2a (test for excess errors)
     PASS: g++.dg/expr/bitfield5.C  -std=c++98  (test for warnings, line 12)
     PASS: g++.dg/expr/bitfield5.C  -std=c++98  (test for warnings, line 16)
     PASS: g++.dg/expr/bitfield5.C  -std=c++98 (test for excess errors)
    +PASS: g++.dg/expr/bitfield5.C  -std=c++98 execution test
     PASS: g++.dg/expr/bitfield6.C  -std=c++14  (test for warnings, line 10)
     PASS: g++.dg/expr/bitfield6.C  -std=c++14 (test for excess errors)
     PASS: g++.dg/expr/bitfield6.C  -std=c++17  (test for errors, line 10)

..., and several more like that.

'g++.dg/expr/bitfield5.C':

    // PR c++/30274
    // { dg-do run { target c++14_down } }
    // { dg-do compile { target c++17 } }
    [...]
      s.x++; // { dg-warning "5:use of an operand of type .bool. in .operator\\+\\+. is deprecated" "" { target { ! c++17 } } }
      // { dg-error "forbidden" "" { target c++17 } .-1 }
    [...]

So, this is meant to be an execution test for C++14 and older, and a
compile test for C++17 and newer.  This pattern seems to be recognized on
the "new" system, but not on the "old" system, where execution tests
aren't being run, only compile tests.

The "old" system, powerpc64le-unknown-linux-gnu Ubuntu 14.04, has DejaGnu
1.5-3ubuntu1.  Also reproduced on a x86_64-pc-linux-gnu Ubuntu 12.10
system with DejaGnu 1.5-3.

The "new" system, powerpc64le-unknown-linux-gnu Ubuntu 18.04, has DejaGnu
1.6.1-1.  Also reproduced on a x86_64-pc-linux-gnu Ubuntu 18.04 system
with DejaGnu 1.6.1-1.  And: also reproduced on the "old" system, when
instead of system-provided DejaGnu 1.5-3ubuntu1 manually running with
Ubuntu 18.04 DejaGnu 1.6.1-1.

Relevant (but haven't verified) seems to be the following DejaGnu commit:

    commit 569f8718b534a2cd9511a7d640352eb0126ff492
    Author: Dominik Vogt <vogt@linux.vnet.ibm.com>
    Date:   Mon Mar 28 17:31:07 2016 +1100

            * dg.exp (dg-do): Do not change the previously selected action if
            a de-selected dg-do is encountered.

Discussed in
<http://mid.mail-archive.com/20160308132910.GA30210@linux.vnet.ibm.com>,
and this indeed got included for DejaGnu 1.6.

Looking through the GCC testuite for test case files with more than one
'dg-do', the confusing thing is that this pattern has already been used
for a very long time.  See, for example, commit
5bdf05c8743e7486521ce3a3981ac3e6e7850ad0 (r143350, 2009-01-13):

    -/* { dg-do run { target powerpc*-*-* } } */
    +/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
    +/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */

I have not found any evidence in DejaGnu master branch that this not
working would've been a "recent" DejaGnu regression (and then fixed for
DejaGnu 1.6) -- so do we have to assume that this never worked as
intended back then?

I have not found an easy way to express different 'do-what-keyword'
within one test case file that work with old and new DejaGnu.

Per our "Prerequisites for GCC" installation documentation, we currently
require DejaGnu 1.4.4.  Advancing that to 1.6 is probably out of
question, given that it has "just" been released (four years ago).

As the failure mode with old DejaGnu is "benign" (only causes missing
execution testing), we could simply move on, and accept non-reproducible
results between different DejaGnu versions?  Kind of lame...  ;-|


Grüße
 Thomas
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter

^ permalink raw reply	[flat|nested] 89+ messages in thread
* Re: dejagnu version update?
@ 2017-08-25 13:25 David Edelsohn
  2017-08-25 13:33 ` H.J. Lu
  0 siblings, 1 reply; 89+ messages in thread
From: David Edelsohn @ 2017-08-25 13:25 UTC (permalink / raw)
  To: Jonathan Wakely
  Cc: Bernhard Reutner-Fischer, Jakub Jelinek, Jeff Law, David Malcolm,
	Mike Stump, GCC Development

FYI, DejaGNU 1.6.1 is not compatible with the GCC Testsuite.  The GCC
Testsuite uses "unsetenv" in multiple instances and that feature has
been removed from DejaGNU.  The testsuite is going to experience
DejaGNU errors when Fedora or OpenSUSE upgrades to a more recent
DejaGNU in the 1.6 series.

- David

^ permalink raw reply	[flat|nested] 89+ messages in thread
[parent not found: <1441916913-11547-1-git-send-email-dmalcolm@redhat.com>]

end of thread, other threads:[~2021-10-28 19:11 UTC | newest]

Thread overview: 89+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 10:26 DejaGnu/GCC testsuite behavior regarding multiple 'dg-do' Thomas Schwinge
2020-05-13 16:51 ` dejagnu version update? Mike Stump
2020-05-13 17:43   ` Jonathan Wakely
2020-05-13 18:29     ` Rainer Orth
2020-05-13 23:43       ` Maciej W. Rozycki
2020-05-14 14:08         ` Rainer Orth
2020-05-14 15:12           ` Rob Savoye
2020-05-14 16:08             ` David Edelsohn
2020-05-14 16:45               ` Rob Savoye
2020-05-14 18:11                 ` Tom Tromey
2020-05-16  0:22                   ` Mike Stump
2020-05-16  0:47                     ` Rob Savoye
2020-05-15  1:50                 ` Jacob Bachmeyer
2020-05-14 23:34             ` Maciej W. Rozycki
2020-05-15  0:33               ` Rob Savoye
2020-05-16 23:45                 ` Maciej W. Rozycki
2020-05-17  3:30                   ` Siddhesh Poyarekar
2020-05-17  3:48                   ` Rob Savoye
2020-05-17  4:09                     ` Andrew Pinski
2020-05-17 19:43                     ` Maciej W. Rozycki
2020-05-17 19:55                       ` Rob Savoye
2020-05-27  0:55                         ` Rob Savoye
2020-05-27  1:20                           ` Maciej W. Rozycki
2020-05-27  1:55                             ` Rob Savoye
2020-06-09 20:12                               ` Maciej W. Rozycki
2020-06-10  2:33                                 ` Jacob Bachmeyer
2020-06-10  4:18                                   ` dejagnu version update? [CORRECTION: not a regression in DejaGnu; GDB testsuite bug] Jacob Bachmeyer
2020-06-10 16:37                                     ` Maciej W. Rozycki
2020-06-11  2:43                                       ` GDB testsuite overrides default_target_compile and breaks Jacob Bachmeyer
2020-06-12 16:28                               ` dejagnu version update? Christophe Lyon
2020-05-14 15:46           ` Maciej W. Rozycki
2020-05-14  6:44     ` Christophe Lyon
2020-05-14  8:45       ` Jonathan Wakely
2020-05-13 18:20   ` Rob Savoye
  -- strict thread matches above, loose matches on Subject: below --
2017-08-25 13:25 David Edelsohn
2017-08-25 13:33 ` H.J. Lu
2017-08-25 13:35   ` David Edelsohn
2017-08-25 13:50     ` H.J. Lu
2017-08-25 13:50       ` David Edelsohn
2017-08-25 13:55       ` Rainer Orth
2017-08-25 17:47         ` David Edelsohn
2017-08-25 18:33           ` Winfried Magerl
2017-09-06 18:49           ` Jonathan Wakely
2017-09-06 19:19             ` David Edelsohn
     [not found] <1441916913-11547-1-git-send-email-dmalcolm@redhat.com>
     [not found] ` <1441916913-11547-3-git-send-email-dmalcolm@redhat.com>
     [not found]   ` <55F720E6.7020709@redhat.com>
     [not found]     ` <4CB1399A-23A6-44F7-A25F-ECBD953E03A0@gmail.com>
     [not found]       ` <55F74C3D.50504@redhat.com>
2015-09-15 19:21         ` Mike Stump
2015-09-15 19:23           ` David Malcolm
2015-09-15 20:11             ` Jeff Law
2015-09-15 20:51               ` Bernhard Reutner-Fischer
2017-05-13 10:24                 ` Bernhard Reutner-Fischer
2017-05-13 10:38                   ` Jakub Jelinek
2017-05-13 20:39                     ` Jeff Law
2017-05-14 22:10                       ` NightStrike
2017-05-15  8:06                         ` Richard Biener
2017-05-15 19:18                           ` Mike Stump
2017-05-15 20:41                             ` Andreas Schwab
2017-05-16  9:54                     ` Jonathan Wakely
2017-05-16 12:13                       ` Bernhard Reutner-Fischer
2017-05-16 12:16                         ` Jonathan Wakely
2017-05-16 12:35                           ` Bernhard Reutner-Fischer
2017-05-16 18:34                             ` Matthias Klose
2017-05-16 19:08                           ` Mike Stump
2018-08-04 16:32                             ` Bernhard Reutner-Fischer
2018-08-06 14:33                               ` Jonathan Wakely
2018-08-06 15:26                               ` Mike Stump
2018-08-07 16:34                                 ` Segher Boessenkool
2018-08-08 11:18                                   ` Bernhard Reutner-Fischer
2018-08-08 13:35                                     ` Richard Earnshaw (lists)
2018-08-08 14:37                                     ` Michael Matz
2018-08-08 16:45                                     ` Segher Boessenkool
2021-10-27 23:00                               ` Bernhard Reutner-Fischer
2021-10-28 19:11                                 ` Jeff Law
2015-09-15 19:25           ` Bernhard Reutner-Fischer
2015-09-15 20:05             ` Jeff Law
2015-09-15 23:28               ` Mike Stump
2015-09-16  8:18                 ` Andreas Schwab
2015-09-16 16:20                   ` Mike Stump
2015-09-16 16:32                     ` Ramana Radhakrishnan
2015-09-16 16:48                       ` Jeff Law
2015-09-16 17:38                         ` Trevor Saunders
2017-05-15 15:54                           ` Martin Jambor
2017-05-15 18:05                             ` Pedro Alves
2015-09-16 17:57                         ` David Malcolm
2015-09-16 19:35                           ` Bernhard Reutner-Fischer
2015-09-16 20:22                             ` Mike Stump
2015-09-17  2:28                           ` Segher Boessenkool
2015-09-17 15:15                         ` Richard Earnshaw
2015-09-16 18:13                       ` Mike Stump
2015-09-16 19:02                         ` Bernhard Reutner-Fischer
2015-09-16 19:43                         ` Ramana Radhakrishnan

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