public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/30380] New: [gdb/testsuite] Missing c++ flag in c++ tests
@ 2023-04-23  7:36 vries at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: vries at gcc dot gnu.org @ 2023-04-23  7:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30380

            Bug ID: 30380
           Summary: [gdb/testsuite] Missing c++ flag in c++ tests
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

I tried a target board that enforces an older c dialect:
...
+set found_gcc "[find_gcc] -std=gnu90"
...
trying to simulate using gcc 4.8.5 using a current system compiler.

This itself gives some problems because $found_gcc is expected to be a file,
but I also run into this:
...
gdb compile failed, cc1plus: warning: command line option '-std=gnu90' is valid
for C/ObjC but not for C++
...

For these test-cases:
...
$ egrep "Running|not for" old-dialect/leap-15-4/CHECKLOG.gdb | grep -B1 "not
for" | grep Running
Running /data/vries/gdb/src/gdb/testsuite/gdb.base/condbreak-multi-context.exp
...
Running /data/vries/gdb/src/gdb/testsuite/gdb.base/main-psymtab.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.base/persistent-lang.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.base/skipcxx.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.base/start-cpp.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/call-method-register.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/empty-enum.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/method-call-in-c.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/minsym-fallback.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.cp/vla-cxx.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.dwarf2/method-ptr.exp ...
Running
/data/vries/gdb/src/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
...
Running /data/vries/gdb/src/gdb/testsuite/gdb.dwarf2/subrange.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.guile/types-module.exp ...
Running
/data/vries/gdb/src/gdb/testsuite/gdb.linespec/cp-completion-aliases.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.linespec/cpcompletion.exp ...
Running /data/vries/gdb/src/gdb/testsuite/gdb.linespec/cpls-ops.exp ...
...

Fixed presumably by:
...
diff --git a/gdb/testsuite/gdb.base/condbreak-multi-context.exp
b/gdb/testsuite/gdb.base/condbreak-multi-context.exp
index ba9ef080503..79e223d8ac5 100644
--- a/gdb/testsuite/gdb.base/condbreak-multi-context.exp
+++ b/gdb/testsuite/gdb.base/condbreak-multi-context.exp
@@ -18,7 +18,7 @@

 standard_testfile .cc

-if {[prepare_for_testing "failed to prepare" ${binfile} ${srcfile}]} {
+if {[prepare_for_testing "failed to prepare" ${binfile} ${srcfile} {debug
c++}]} {
     return
 }

...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-23  7:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-23  7:36 [Bug testsuite/30380] New: [gdb/testsuite] Missing c++ flag in c++ tests vries at gcc dot gnu.org

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