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".
+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
# 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]
}
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]