[ was: Re: [PATCH][gdb/testsuite] Simplify gdb.dwarf2/locexpr-data-member-location.exp ] On 9/5/21 8:39 AM, Tom de Vries wrote: > +# Avoid questions from the file command about: > +# - Are you sure you want to change the file (y or n) ? > +# - Discard symbol table from (y or n) ? > +gdb_test_no_output "set confirm off" > + > +# Tell internal-error how to behave, otherwise "set confirm off" will trigger > +# generation of core file. > +gdb_test_no_output "maint set internal-error quit no" > +gdb_test_no_output "maint set internal-error corefile no" > + > +setup_kfail gdb/28030 *-*-* > +gdb_test "file" "No executable file now\\." "Discard file" I realized that we have gdb_unload for this, which handles the file command questions. But it's missing the internal-error handling. I've fixed this in a separate patch. Thanks, - Tom