diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-21 00:55:01 +0000 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2022-01-07 22:43:33 +0000 |
commit | d95edb60be9f66cb4797130c8902bf5814b19448 (patch) | |
tree | ab4bbd54fb1c3cbd57eb27508289fee9c1c82c00 | |
parent | 1868c0cb3378ba3984c056b3850cc93eaa709e04 (diff) | |
download | binutils-d95edb60be9f66cb4797130c8902bf5814b19448.zip binutils-d95edb60be9f66cb4797130c8902bf5814b19448.tar.gz binutils-d95edb60be9f66cb4797130c8902bf5814b19448.tar.bz2 |
gdb/testsuite: Remove duplicates from gdb.base/set-cfd.exp
When running the testsuite, I have:
Running .../gdb/testsuite/gdb.base/set-cwd.exp ...
DUPLICATE: gdb.base/set-cwd.exp: test_cwd_reset: continue to breakpoint: break-here
Fix by moving the tests after the 'runto_main' within the same
with_test_prefix scope.
While at it, I fix some indentation issues.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.base/set-cwd.exp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/set-cwd.exp b/gdb/testsuite/gdb.base/set-cwd.exp index 5a4241f..172d603 100644 --- a/gdb/testsuite/gdb.base/set-cwd.exp +++ b/gdb/testsuite/gdb.base/set-cwd.exp @@ -43,15 +43,15 @@ proc_with_prefix test_tilde_expansion { } { set home "" set test "print home var" gdb_test_multiple "print home" $test { - -re "\\\$$decimal = $hex \"\(.+\)\"\r\n$gdb_prompt $" { - set home $expect_out(1,string) - pass $test - } + -re "\\\$$decimal = $hex \"\(.+\)\"\r\n$gdb_prompt $" { + set home $expect_out(1,string) + pass $test + } } if { $home == "" } { - untested "could not retrieve home var" - return + untested "could not retrieve home var" + return } set curdir "" @@ -177,13 +177,13 @@ proc_with_prefix test_cwd_reset { } { if { ![runto_main] } { return -1 } - } - gdb_breakpoint [gdb_get_line_number "break-here"] - gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_breakpoint [gdb_get_line_number "break-here"] + gdb_continue_to_breakpoint "break-here" ".* break-here .*" - gdb_test "print dir" "\\\$$decimal = \"$gdb_cwd\", .*" \ - "inferior cwd got reset correctly" + gdb_test "print dir" "\\\$$decimal = \"$gdb_cwd\", .*" \ + "inferior cwd got reset correctly" + } } test_cd_into_dir |