forked from Imagelibrary/binutils-gdb
Use 'require' with gnatmake_version_at_least
I found a couple of tests that check gnatmake_version_at_least using "if" where "require" would be a little cleaner. This patch converts these.
This commit is contained in:
@@ -16,10 +16,8 @@
|
||||
load_lib "ada.exp"
|
||||
|
||||
require allow_ada_tests
|
||||
require {gnatmake_version_at_least 8}
|
||||
|
||||
if { ![gnatmake_version_at_least 8] } {
|
||||
return -1
|
||||
}
|
||||
standard_ada_testfile prot
|
||||
|
||||
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
|
||||
|
||||
@@ -17,9 +17,7 @@ load_lib "ada.exp"
|
||||
|
||||
require allow_ada_tests
|
||||
|
||||
if { ![gnatmake_version_at_least 8] } {
|
||||
return -1
|
||||
}
|
||||
require {gnatmake_version_at_least 8}
|
||||
|
||||
standard_ada_testfile pb30_012
|
||||
|
||||
|
||||
Reference in New Issue
Block a user