gdb_test "continue 10" "breakpoint 1.*" "break1 three"
gdb_test "checkpoint" ".*" ""
-gdb_test "continue 10" "breakpoint 1.*" "break1 four"
+gdb_test "continue 10" "breakpoint 1.*" "break1 four"
gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 five"
gdb_test "print lines" " = 91.*" "verify lines 10 one"
#
-# Now let the files be closed by the original process,
+# Now let the files be closed by the original process,
# and diff them.
gdb_test "restart 0" "Switching to .*breakpoint 2.*" "restart 0 one"
"diff input and output one"
#
-# And now run from various checkpoints, allowing
+# And now run from various checkpoints, allowing
# various amounts of input and output.
#
gdb_test "continue" ".*" ""
gdb_test "continue 1000" "breakpoint 1.*" "breakpoint 1 6 one"
gdb_test "step" "if .c == EOF.*" "step in 6 two"
-gdb_test "print lines" " = 1052.*" "verify lines 5 two"
+gdb_test "print lines" " = 1052.*" "verify lines 6 two"
gdb_test "restart 7" "Switching to .*c == EOF.*" "restart 7 two"
gdb_test "continue" ".*" ""
"Files .*pi.txt and .*copy1.txt are identical.*" \
"diff input and output two"
-#
-# OK, now allow the original program to delete the output file,
+#
+# OK, now allow the original program to delete the output file,
# and verify that the checkpoints can still write to it.
-#
+#
-gdb_test "restart 0" "Switching to .*breakpoint 3.*" "restart 0 one"
+gdb_test "restart 0" "Switching to .*breakpoint 3.*" "restart 0 two"
gdb_breakpoint $break4_loc
gdb_test "continue" "breakpoint 4.*" "break4 one"
#
# There should be still at least five forks left
-#
+#
gdb_test "info checkpoints" " 1 .* 2 .* 3 .* 4 .* 5 .*" \
"info checkpoints two"
gdb_test "kill" "" "kill all one" \
"Kill the program being debugged.*y or n. $" "y"
-#
+#
# and confirm that all are gone
#
fail $msg
}
}
-}
+}
#
# OK, kill 'em all...