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.
This commit is contained in:
parent
1868c0cb33
commit
d95edb60be
1 changed files with 12 additions and 12 deletions
|
@ -43,15 +43,15 @@ proc_with_prefix test_tilde_expansion { } {
|
||||||
set home ""
|
set home ""
|
||||||
set test "print home var"
|
set test "print home var"
|
||||||
gdb_test_multiple "print home" $test {
|
gdb_test_multiple "print home" $test {
|
||||||
-re "\\\$$decimal = $hex \"\(.+\)\"\r\n$gdb_prompt $" {
|
-re "\\\$$decimal = $hex \"\(.+\)\"\r\n$gdb_prompt $" {
|
||||||
set home $expect_out(1,string)
|
set home $expect_out(1,string)
|
||||||
pass $test
|
pass $test
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if { $home == "" } {
|
if { $home == "" } {
|
||||||
untested "could not retrieve home var"
|
untested "could not retrieve home var"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set curdir ""
|
set curdir ""
|
||||||
|
@ -177,13 +177,13 @@ proc_with_prefix test_cwd_reset { } {
|
||||||
if { ![runto_main] } {
|
if { ![runto_main] } {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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_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"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test_cd_into_dir
|
test_cd_into_dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue