Skip floating point tests in return-nodebug.exp if gdb_skip_float_test is true
authorYao Qi <yao.qi@linaro.org>
Fri, 2 Sep 2016 14:26:54 +0000 (15:26 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 2 Sep 2016 14:26:54 +0000 (15:26 +0100)
return-nodebug.exp does the test for various types, but we shouldn't
test with floating point type if gdb_skip_float_test returns true.

gdb/testsuite:

2016-09-02  Yao Qi  <yao.qi@linaro.org>

* gdb.base/return-nodebug.exp: Skip the test if skip_float_test
is true and $type is "float" or "double".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/return-nodebug.exp

index 76b5e9c9c7b578d1e859dc2e32b80bd125547ea2..ffb993cf56ee1cf5550a9c66f20b6627f4b05ae2 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-02  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.base/return-nodebug.exp: Skip the test if skip_float_test
+       is true and $type is "float" or "double".
+
 2016-09-02  Yao Qi  <yao.qi@linaro.org>
 
        * gdb.arch/arm-neon.exp: Skip it if gdb_skip_float_test returns
index e44494f2941ef76b24b7c49ef9fc4a9b6135b060..0d58ba5846480685aa60a2da587b8904bcfb02c6 100644 (file)
@@ -13,6 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set skip_float_test [gdb_skip_float_test]
+
 proc do_test {type} {
     set typenospace [string map {{ } -} $type]
 
@@ -42,6 +44,9 @@ proc do_test {type} {
 }
 
 foreach type {{signed char} {short} {int} {long} {long long} {float} {double}} {
+    if { $skip_float_test && ($type == "float" || $type == "double") } {
+       continue
+    }
     set typeesc [string map {{ } {\ }} $type]
     set typenospace [string map {{ } -} $type]
 
This page took 0.034335 seconds and 4 git commands to generate.