-# Copyright 2015-2017 Free Software Foundation, Inc.
+# Copyright 2015-2020 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# 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