This patch fixes the tcl test script iso-extended-opaque-run-pass.exp so
that the test library modules are built and included with the link command.
gcc/testsuite/ChangeLog:
* gm2/projects/iso/small/run/pass/iso-extended-opaque-run-pass.exp:
Compile object for stressset.mod and testlib.mod. Add test so
that we only link these objects with test application objects.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
load_lib gm2-torture.exp
gm2_init_iso "${srcdir}/gm2/projects/iso/small/run/pass"
-gm2_link_obj testlib.o
+gm2_link_obj "testlib.o stressset.o"
foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
# If we're only testing specific files and this isn't one of them, skip it.
continue
}
- if { $testcase != "$srcdir/$subdir/testlib.mod" } {
+ if { $testcase != "$srcdir/$subdir/testlib.mod" &&
+ $testcase != "$srcdir/$subdir/stressset.mod" } then {
gm2_target_compile $srcdir/$subdir/testlib.mod testlib.o object "-g"
+ gm2_target_compile $srcdir/$subdir/stressset.mod stressset.o object "-g"
gm2-torture-execute $testcase "" "pass"
}
}