Skip to content

Commit 49459ed

Browse files
committed
gdb/testsuite: Disable gdb.compile when testing with clang
Attempting to test the gdb.compile with clang as the compiler results in over 300 unexpected errors, due to a segmentation fault and several handshake failures. Since the whole feature is designed around a gcc plugin, and even the gcc testing is shaky at best, this commit restricts those tests to only running under gcc. If that gets fixed, this commit can be reverted. Approved-By: Tom Tromey <[email protected]>
1 parent ea305f8 commit 49459ed

16 files changed

+32
-4
lines changed

gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++ additional_flags=-std=c++11}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-inherit.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-member.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-method.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-namespace.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-nested.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus-print.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ load_lib compile-support.exp
1717

1818
standard_testfile
1919

20+
require is_c_compiler_gcc
21+
2022
set options {}
2123
if [test_compiler_info gcc*] {
2224
lappend options additional_flags=-g3

gdb/testsuite/gdb.compile/compile-cplus-virtual.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ standard_testfile .cc
2121

2222
require allow_cplus_tests
2323

24+
require is_c_compiler_gcc
25+
2426
if {[prepare_for_testing $testfile $testfile $srcfile \
2527
{debug nowarnings c++}]} {
2628
return -1

gdb/testsuite/gdb.compile/compile-cplus.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ load_lib compile-support.exp
1717

1818
standard_testfile .c compile-shlib.c compile-constvar.S compile-nodebug.c
1919

20+
require is_c_compiler_gcc
21+
2022
set options {}
2123
if { [test_compiler_info gcc*] || [test_compiler_info clang*] } {
2224
lappend options additional_flags=-g3

0 commit comments

Comments
 (0)