diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-22 13:38:26 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-25 09:02:11 -0700 |
commit | 52c0551e9ac03a54e282f9e17d3291c1c8848a7b (patch) | |
tree | 91c2286a7bbd6c070ff6a0084f45d3782bb3119a /gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | |
parent | e0a8643d2cea10858f30a8378f6cab4472dee0f9 (diff) | |
download | binutils-gdb-52c0551e9ac03a54e282f9e17d3291c1c8848a7b.tar.gz |
Use require with is_remote
This changes some tests to use require with 'is_remote', rather than
an explicit test. This adds uniformity helps clean up more spots
where a test might exit early without any notification.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp index 2f37d4d7955..a6beba443c4 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp @@ -19,10 +19,8 @@ require dwarf2_support # This test has hard-wired assumptions that host and build filenames are # the same, and assumes POSIX pathname syntax. -if { [is_remote host] || [ishost *-*-mingw*] } { - unsupported "can only run on local host" - return 0 -} +require {!is_remote host} +require {!ishost *-*-mingw*} # Find length of addresses in bytes. if {[is_64_target]} { |