[Bug testsuite/24807] New: gdb.objc FAILs
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Sun Jul 14 11:37:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24807
Bug ID: 24807
Summary: gdb.objc FAILs
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: ---
When running the objc tests, we have:
...
# of expected passes 13
# of unsupported tests 3
...
The UNSUPPORTED are:
...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/basicclass.exp ...
UNSUPPORTED: gdb.objc/basicclass.exp: couldn't compile basicclass.m:
unrecognized error
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/nondebug.exp ...
UNSUPPORTED: gdb.objc/nondebug.exp: couldn't compile nondebug.m: unrecognized
error
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/objcdecode.exp ...
UNSUPPORTED: gdb.objc/objcdecode.exp: couldn't compile objcdecode.m:
unrecognized error
...
With this patch, we switch off all warning (so we no longer run into Werror,
causing the UNSUPPORTED):
...
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 49ec8b2a55..cfa0a1221d 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3947,6 +3947,7 @@ proc gdb_compile_shlib_pthreads {sources dest options} {
proc gdb_compile_objc {source dest type options} {
set built_binfile 0
set why_msg "unrecognized error"
+ lappend options "nowarnings"
foreach lib {-lobjc -lpthreads -lpthread -lthread solaris} {
# This kind of wipes out whatever libs the caller may have
# set. Or maybe theirs will override ours. How infelicitous.
...
and get:
...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/print.exp ...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/objcdecode.exp ...
FAIL: gdb.objc/objcdecode.exp: continue after break on multiply defined symbol
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/nondebug.exp ...
Running /data/gdb_versions/devel/src/gdb/testsuite/gdb.objc/basicclass.exp ...
FAIL: gdb.objc/basicclass.exp: continue until method breakpoint
FAIL: gdb.objc/basicclass.exp: continue until method breakpoint
FAIL: gdb.objc/basicclass.exp: print an ivar of self
FAIL: gdb.objc/basicclass.exp: print self
FAIL: gdb.objc/basicclass.exp: print contents of self
FAIL: gdb.objc/basicclass.exp: continue until category method
FAIL: gdb.objc/basicclass.exp: call an Objective-C method with no arguments
FAIL: gdb.objc/basicclass.exp: call an Objective-C method with one argument
FAIL: gdb.objc/basicclass.exp: use of the print-object command
FAIL: gdb.objc/basicclass.exp: use of the po (print-object) command
=== gdb Summary ===
# of expected passes 28
# of unexpected failures 11
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list