gdb_test "print v_int_pointer > v_int_pointer2" " = $false" \
"pointer1>pointer2"
-gdb_test_no_output "set variable y = *v_int_pointer++" \
- "set y = *v_int_pointer++"
-gdb_test "print y" " = 6" "pointer assignment"
-gdb_test "print *v_int_pointer" " = 18" "and post-increment"
-
-
+with_test_prefix "post-increment" {
+ gdb_test_no_output "set variable y = *v_int_pointer++" \
+ "set y = *v_int_pointer++"
+ gdb_test "print y" " = 6" "pointer assignment"
+ gdb_test "print *v_int_pointer" " = 18" "and post-increment"
+}
-gdb_test_no_output "set variable y = *--v_int_pointer2" \
- "set y = *--v_int_pointer2"
-gdb_test "print y" " = 6" "pointer assignment"
-gdb_test "print *v_int_pointer2" " = 6" "and pre-decrement"
+with_test_prefix "pre-decrement" {
+ gdb_test_no_output "set variable y = *--v_int_pointer2" \
+ "set y = *--v_int_pointer2"
+ gdb_test "print y" " = 6" "pointer assignment"
+ gdb_test "print *v_int_pointer2" " = 6" "and pre-decrement"
+}
gdb_test_no_output "set variable y =v_int_pointer-v_int_pointer2" \