[testsuite] Don't skip gdb.dwarf2/pr10770.exp for non-gcc compiler
authorYao Qi <yao.qi@linaro.org>
Wed, 22 Nov 2017 14:46:30 +0000 (14:46 +0000)
committerYao Qi <yao.qi@linaro.org>
Wed, 22 Nov 2017 14:47:42 +0000 (14:47 +0000)
gdb.dwarf2/pr10770.exp can be used for non-gcc compiler, at least clang.
This patch removes the restriction to only use gcc.  If other compilers,
like xlc or icc, can't compile the .c file, test result is not changed.

gdb/testsuite:

2017-11-22  Yao Qi  <yao.qi@linaro.org>

* gdb.dwarf2/pr10770.exp: Remove code skipping non-gcc
compiler.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/pr10770.exp

index 110fcb1d7f63dfdc371729ee97407bcb19752306..0bb2391924cb263f3ccdad6763bb09e42d15a445 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.dwarf2/pr10770.exp: Remove code skipping non-gcc
+       compiler.
+
 2017-11-22  Yao Qi  <yao.qi@linaro.org>
 
        * gdb.base/attach-pie-noexec.exp: Pass "-pie" in ldflags.
index 938fbd1c1c5638c17be48c2699009da746012a97..63f406159d2c65cc82b78e446b6a44b73dc8ab9a 100644 (file)
@@ -21,12 +21,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
     return 0
 }
 
-# This test can only be run on targets which use GCC.
-get_compiler_info
-if {![test_compiler_info "gcc-*"]} {
-    return 0
-}
-
 if {![runto_main]} {
     return -1
 }
This page took 0.031219 seconds and 4 git commands to generate.