diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d510b794a95..36c49243425 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-19 Andreas Arnez + + * gdb.arch/s390-vregs.exp: Explicitly cast the return values of + setrlimit and chdir to int. + 2018-01-19 Andreas Arnez * gdb.arch/s390-tdbregs.c (my_tbegin): Add comment documenting the diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp index 915fcfca657..1fdb5c04a80 100644 --- a/gdb/testsuite/gdb.arch/s390-vregs.exp +++ b/gdb/testsuite/gdb.arch/s390-vregs.exp @@ -83,9 +83,9 @@ if [expr $before_pc + 6 != $after_pc] { # directory. if { $coredir != "" } { - gdb_test {print setrlimit (4, &(unsigned long [2]){~0UL, ~0UL})} \ + gdb_test {print (int) setrlimit (4, &(unsigned long [2]){~0UL, ~0UL})} \ " = .*" "setrlimit" - gdb_test "print chdir (\"${coredir}\")" " = 0" "chdir" + gdb_test "print (int) chdir (\"${coredir}\")" " = 0" "chdir" } # Initialize all vector registers with GDB "set" commands, using