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:
Tom Tromey
2023-04-12 08:36:15 -06:00
parent 0a12bf174d
commit 8cb6bcc3ee
2 changed files with 2 additions and 6 deletions

View File

@@ -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 \

View File

@@ -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