# And finally, the meat of the testcase... Insert an Ada exception
# catchpoint that uses both conditions and exception name.
-mi_gdb_test "-catch-exception -c \"i = 2\" -e constraint_error" \
- "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*}" \
- "catch C_E if i = 2"
+mi_gdb_test "-catch-exception -c \"the_test_index = 2\" -e constraint_error" \
+ "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",cond=\"the_test_index = 2\",.*}" \
+ "catch C_E if the_test_index = 2"
# It is important that we start the program's execution after having
# inserted the exception catchpoint above. We want to verify that
# a clobbering of some of the exeption's info.
mi_gdb_test "-break-list" \
- "\\^done,.*,what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*" \
+ "\\^done,.*,what=\"`constraint_error' Ada exception\",.*,cond=\"the_test_index = 2\",.*" \
"-break-list"