Skip to content

Commit 54ffda5

Browse files
committed
a68: fix modules testsuite to not include flags in test name [PR algol68/123131]
Signed-off-by: Jose E. Marchesi <[email protected]> gcc/testsuite/ChangeLog PR algol68/123131 * algol68/compile/modules/compile.exp: Pass module include path via extra_flags to algol68-dg-runtest. * algol68/execute/modules/execute.exp: Pass module include path via algol68_compile_args. * lib/algol68-dg.exp (MODULES_OPTIONS): Delete. (algol68-dg-runtest): Do not use MODULE_OPTIONS. * lib/algol68-torture.exp (BUILT_MODULES_DIR): Delete. (algol68-torture-execute): Do not use BUILT_MODULES_DIR.
1 parent 4ac9dec commit 54ffda5

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

gcc/testsuite/algol68/compile/modules/compile.exp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ dg-init
2626
# The programs need to be able to find the built modules, which are
2727
# left in objdir.
2828

29-
global MODULES_OPTIONS
30-
set MODULES_OPTIONS "-I $objdir"
31-
3229
# Main loop.
3330
set saved-dg-do-what-default ${dg-do-what-default}
3431

3532
set dg-do-what-default "compile"
36-
algol68-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/program*.a68]] "" ""
33+
algol68-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/program*.a68]] "" "-I $objdir"
3734
set dg-do-what-default ${saved-dg-do-what-default}
3835

3936
# All done.

gcc/testsuite/algol68/execute/modules/execute.exp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,12 @@ load_lib torture-options.exp
2525
torture-init
2626
set-torture-options $TORTURE_OPTIONS
2727

28-
# The programs need to be able to find the built modules, which are
29-
# left in objdir.
30-
global BUILT_MODULES_DIR
31-
set BUILT_MODULES_DIR "$objdir"
32-
3328
foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/program-*.a68]] {
3429
# If we're only testing specific files and this isn't one of them, skip it.
3530
if ![runtest_file_p $runtests $testcase] then {
3631
continue
3732
}
33+
set algol68_compile_args "-I$objdir"
3834
algol68-torture-execute $testcase
3935
set algol68_compile_args ""
4036
}

gcc/testsuite/lib/algol68-dg.exp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@ proc algol68-dg-prune { system text } {
2626
return [gcc-dg-prune $system $text]
2727
}
2828

29-
# Global modules options
30-
set MODULES_OPTIONS ""
31-
3229
# Modified dg-runtest that can cycle through a list of optimization options
3330
# as c-torture does.
3431
proc algol68-dg-runtest { testcases flags default-extra-flags } {
3532
global runtests
3633
global TORTURE_OPTIONS
37-
global MODULES_OPTIONS
3834

3935
foreach test $testcases {
4036
# If we're only testing specific files and this isn't one of
@@ -55,7 +51,7 @@ proc algol68-dg-runtest { testcases flags default-extra-flags } {
5551

5652
foreach flags_t $option_list {
5753
verbose "Testing $nshort, $flags $flags_t" 1
58-
dg-test $test "$MODULES_OPTIONS $flags $flags_t" ${default-extra-flags}
54+
dg-test $test "$flags $flags_t" ${default-extra-flags}
5955
}
6056
}
6157
}

gcc/testsuite/lib/algol68-torture.exp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ if ![info exists TORTURE_OPTIONS] {
4242
}
4343
}
4444

45-
# Location of built modules
46-
set BUILT_MODULES_DIR ""
47-
4845
# Build a series of modules ACCESSed by this test.
4946
#
5047
# The first to dg-modules is a list of module names. The source file
@@ -285,9 +282,6 @@ proc algol68-torture-execute { src } {
285282
if { $algol68_compile_args != "" } {
286283
lappend options "additional_flags=$algol68_compile_args"
287284
}
288-
if { $BUILT_MODULES_DIR != "" } {
289-
lappend options "additional_flags=-I$BUILT_MODULES_DIR"
290-
}
291285
if { $algol68_module_objects != "" } {
292286
lappend options "additional_flags=$algol68_module_objects"
293287
}

0 commit comments

Comments
 (0)