diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a8c4d81780..36c2b95219 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-10-24 Pedro Alves + + * gdb.base/startup-with-shell.exp ('touch $unique_file'): Don't + include the unstable output directory name in the test's name. + (initial_setup_simple) <'set args'>: Use custom test name. + 2017-10-24 Pedro Alves * gdb.arch/arc-tdesc-cpu.exp ('set tdesc filename'): Use gdb_test diff --git a/gdb/testsuite/gdb.base/startup-with-shell.exp b/gdb/testsuite/gdb.base/startup-with-shell.exp index af06c88a96..29a4ec50f7 100644 --- a/gdb/testsuite/gdb.base/startup-with-shell.exp +++ b/gdb/testsuite/gdb.base/startup-with-shell.exp @@ -37,7 +37,9 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } { set unique_file [standard_output_file "unique-file.unique-extension"] set unique_file_dir [standard_output_file ""] -run_on_host "touch $unique_file" "touch" "$unique_file" +run_on_host \ + "touch OUTPUT_DIR/unique-file.unique-extension" \ + "touch" "$unique_file" # Initial setup for simple test (wildcard expansion, variable substitution). @@ -48,7 +50,8 @@ proc initial_setup_simple { startup_with_shell run_args } { gdb_test_no_output "set startup-with-shell $startup_with_shell" - gdb_test_no_output "set args $run_args" + gdb_test_no_output "set args $run_args" \ + "set args \$run_args" set test "inferior started" if { [runto_main] } {