Bug 65567 - ERROR: tcl error sourcing /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp
Summary: ERROR: tcl error sourcing /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/c...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libffi (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 18:27 UTC by John David Anglin
Modified: 2016-05-23 15:03 UTC (History)
0 users

See Also:
Host: hppa2.0w-hp-hpux11.11 powerpc-apple-darwin9.8.0
Target: hppa2.0w-hp-hpux11.11 powerpc-apple-darwin9.8.0
Build: hppa2.0w-hp-hpux11.11 powerpc-apple-darwin9.8.0
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2015-03-25 18:27:19 UTC
In libffi testsuite, we have the following ERRORs:

Running /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp ...
ERROR: tcl error sourcing /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/comp
lex.exp.
ERROR: list element in braces followed by ";" instead of space
    while executing
"lindex $lines end"
    (procedure "libffi_feature_test" line 14)
    invoked from within
"libffi_feature_test "#ifdef FFI_TARGET_HAS_COMPLEX_TYPE""
    invoked from within
"if { [libffi_feature_test "#ifdef FFI_TARGET_HAS_COMPLEX_TYPE"] } {
    run-many-tests $tlist ""
} else {
    foreach test $tlist {
        unsupported "$tes..."
    (file "/test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp" line 2
4)
    invoked from within
"source /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
Running /test/gnu/gcc/gcc/libffi/testsuite/libffi.go/go.exp ...
ERROR: tcl error sourcing /test/gnu/gcc/gcc/libffi/testsuite/libffi.go/go.exp.
ERROR: list element in braces followed by ";" instead of space
    while executing
"lindex $lines end"
    (procedure "libffi_feature_test" line 14)
    invoked from within
"libffi_feature_test "#ifdef FFI_GO_CLOSURES""
    invoked from within
"if { [libffi_feature_test "#ifdef FFI_GO_CLOSURES"] } {
    run-many-tests $tlist ""
} else {
    foreach test $tlist {
        unsupported "$test"
    }
}"
    (file "/test/gnu/gcc/gcc/libffi/testsuite/libffi.go/go.exp" line 24)
    invoked from within
"source /test/gnu/gcc/gcc/libffi/testsuite/libffi.go/go.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /test/gnu/gcc/gcc/libffi/testsuite/libffi.go/go.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
Comment 1 John David Anglin 2015-03-28 18:07:06 UTC
Patch here:
https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01490.html
Comment 2 John David Anglin 2015-03-29 20:46:49 UTC
Author: danglin
Date: Sun Mar 29 20:46:17 2015
New Revision: 221765

URL: https://gcc.gnu.org/viewcvs?rev=221765&root=gcc&view=rev
Log:
	PR libffi/65567
	* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
	lindex is applied to a list.


Modified:
    trunk/libffi/ChangeLog
    trunk/libffi/testsuite/lib/libffi.exp
Comment 3 John David Anglin 2015-03-29 20:54:08 UTC
Fixed.
Comment 4 John David Anglin 2015-03-30 20:02:27 UTC
Fixed...
Comment 5 Thomas Schwinge 2016-05-23 14:54:37 UTC
Author: tschwinge
Date: Mon May 23 14:54:04 2016
New Revision: 236594

URL: https://gcc.gnu.org/viewcvs?rev=236594&root=gcc&view=rev
Log:
[PR libffi/65567] libffi: Fix, and simply libffi_feature_test

	libffi/
	PR libffi/65567
	* testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.

Modified:
    trunk/libffi/ChangeLog
    trunk/libffi/testsuite/lib/libffi.exp
Comment 6 Thomas Schwinge 2016-05-23 15:01:13 UTC
Author: tschwinge
Date: Mon May 23 15:00:41 2016
New Revision: 236595

URL: https://gcc.gnu.org/viewcvs?rev=236595&root=gcc&view=rev
Log:
[PR libffi/65567] libffi: Fix, and simply libffi_feature_test

Backport trunk r236594:

	libffi/
	PR libffi/65567
	* testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.

Modified:
    branches/gcc-6-branch/libffi/ChangeLog
    branches/gcc-6-branch/libffi/testsuite/lib/libffi.exp
Comment 7 Thomas Schwinge 2016-05-23 15:03:40 UTC
Author: tschwinge
Date: Mon May 23 15:03:08 2016
New Revision: 236596

URL: https://gcc.gnu.org/viewcvs?rev=236596&root=gcc&view=rev
Log:
[PR libffi/65567] libffi: Fix, and simply libffi_feature_test

Backport trunk r236594:

	libffi/
	PR libffi/65567
	* testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.

Modified:
    branches/gcc-5-branch/libffi/ChangeLog
    branches/gcc-5-branch/libffi/testsuite/lib/libffi.exp