Fix more cases of improper test names
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.reverse / readv-reverse.exp
CommitLineData
618f726f 1# Copyright 2015-2016 Free Software Foundation, Inc.
452b4ba5
MK
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16# This file is part of the gdb testsuite.
17
18#
d5f0636b 19# This test tests readv syscall for reverse execution.
452b4ba5
MK
20#
21
22if ![supports_reverse] {
23 return
24}
25
26standard_testfile
27
5b362f04 28if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
452b4ba5
MK
29 return -1
30}
31
32runto main
33
34if [supports_process_record] {
35 # Activate process record/replay
9f058c10 36 gdb_test_no_output "record" "turn on process record"
452b4ba5
MK
37}
38
452b4ba5
MK
39gdb_test "break marker2" \
40 "Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
41 "set breakpoint at marker2"
42
43gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
44
7ad8b86c
MK
45gdb_test "break marker1" \
46 "Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
47 "set breakpoint at marker1"
48
452b4ba5
MK
49gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
50
51# If the variables were recorded properly on syscall, the old contents ("")
52# will be remembered. If not, new contents ("NUXI") will be
53# used, and the test will fail.
54
55gdb_test "print (int)buf\[0]" ".* = 0" "check readv record"
56gdb_test "print (int)buf\[1]" ".* = 0" "check readv record"
57gdb_test "print (int)buf\[2]" ".* = 0" "check readv record"
58gdb_test "print (int)buf\[3]" ".* = 0" "check readv record"
This page took 0.163305 seconds and 4 git commands to generate.