# This testcase is part of GDB, the GNU debugger.
-# Copyright 2010-2012 Free Software Foundation, Inc.
+# Copyright 2010-2019 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
# It affects Solaris native targets.
-set testfile "gdb11531"
+standard_testfile
-if { [prepare_for_testing $testfile.exp $testfile $testfile.c {debug}] } {
- return -1;
+if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
+ return -1
}
# Disable hardware watchpoints if necessary.
set nl "\[\r\n\]+"
-gdb_test "watch myrec.x" ".*atchpoint \[0-9\]+: myrec\.x" "Set watchpoint"
+gdb_test "watch myrec.x" ".*atchpoint \[0-9\]+: myrec\.x" "set watchpoint"
gdb_test "next" \
".*${nl}.*atchpoint \[0-9\]+: myrec\.x${nl}Old value = 0${nl}New value = 5${nl}.*" \