* [PATCH] libffi testsuite: Use split to ensure valid tcl list
@ 2015-03-28 17:59 John David Anglin
2015-03-29 20:03 ` Andreas Tobler
2016-02-25 19:10 ` Thomas Schwinge
0 siblings, 2 replies; 10+ messages in thread
From: John David Anglin @ 2015-03-28 17:59 UTC (permalink / raw)
To: GCC Patches; +Cc: andreast
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets.
See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65567>.
Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
Dave
--
John David Anglin dave.anglin@bell.net
[-- Attachment #2: libffi-split.d --]
[-- Type: application/octet-stream, Size: 590 bytes --]
2015-03-28 John David Anglin <danglin@gcc.gnu.org>
PR libffi/65567
* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
lindex is applied to a list.
Index: testsuite/lib/libffi.exp
===================================================================
--- testsuite/lib/libffi.exp (revision 221591)
+++ testsuite/lib/libffi.exp (working copy)
@@ -238,7 +239,7 @@
set lines [libffi_target_compile $src "" "preprocess" ""]
file delete $src
- set last [lindex $lines end]
+ set last [lindex [split $lines] end]
return [regexp -- "xyzzy" $last]
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2015-03-28 17:59 [PATCH] libffi testsuite: Use split to ensure valid tcl list John David Anglin
@ 2015-03-29 20:03 ` Andreas Tobler
2015-03-29 20:27 ` John David Anglin
2016-02-25 19:10 ` Thomas Schwinge
1 sibling, 1 reply; 10+ messages in thread
From: Andreas Tobler @ 2015-03-29 20:03 UTC (permalink / raw)
To: John David Anglin, GCC Patches
On 28.03.15 18:59, John David Anglin wrote:
> The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets.
> See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65567>.
>
> Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
From the testsuite pov. ok, but I do not have a picture of the trunk
check in restrictions regarding the next release.
Like the previous patch :)
Thanks,
Andreas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2015-03-29 20:03 ` Andreas Tobler
@ 2015-03-29 20:27 ` John David Anglin
0 siblings, 0 replies; 10+ messages in thread
From: John David Anglin @ 2015-03-29 20:27 UTC (permalink / raw)
To: Andreas Tobler; +Cc: GCC Patches
On 2015-03-29, at 4:02 PM, Andreas Tobler wrote:
> From the testsuite pov. ok, but I do not have a picture of the trunk
> check in restrictions regarding the next release.
Regression and documentation fixes are still okay. I believe this change fixes a regression in testsuite behavior.
I'm will to wait for stage1 on the other patch.
Dave
--
John David Anglin dave.anglin@bell.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2015-03-28 17:59 [PATCH] libffi testsuite: Use split to ensure valid tcl list John David Anglin
2015-03-29 20:03 ` Andreas Tobler
@ 2016-02-25 19:10 ` Thomas Schwinge
2016-02-25 19:49 ` Mike Stump
` (2 more replies)
1 sibling, 3 replies; 10+ messages in thread
From: Thomas Schwinge @ 2016-02-25 19:10 UTC (permalink / raw)
To: John David Anglin, GCC Patches, andreast
[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]
Hi!
Already had noticed something odd here months ago; now finally looked
into it...
On Sat, 28 Mar 2015 13:59:30 -0400, John David Anglin <dave.anglin@bell.net> wrote:
> The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets.
> See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65567>.
>
> Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
(Got approved, and installed as r221765.)
> 2015-03-28 John David Anglin <danglin@gcc.gnu.org>
>
> PR libffi/65567
> * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
> lindex is applied to a list.
>
> Index: testsuite/lib/libffi.exp
> ===================================================================
> --- testsuite/lib/libffi.exp (revision 221591)
> +++ testsuite/lib/libffi.exp (working copy)
> @@ -238,7 +239,7 @@
> set lines [libffi_target_compile $src "" "preprocess" ""]
> file delete $src
>
> - set last [lindex $lines end]
> + set last [lindex [split $lines] end]
> return [regexp -- "xyzzy" $last]
> }
On my several systems, this has the effect that any user of
libffi_feature_test has their test results regress from PASS to
UNSUPPORTED. Apparently the regexp xyzzy matching doesn't work as
intended. If I revert your patch, it's OK for me -- but still not for
you, I suppose. ;-)
How about the followinginstead? It's conceptually simpler (and similar
to what other such tests are doing), works for me -- but can you also
please test this?
--- libffi/testsuite/lib/libffi.exp
+++ libffi/testsuite/lib/libffi.exp
@@ -227,20 +227,21 @@ proc libffi_target_compile { source dest type options } {
# TEST should be a preprocessor condition. Returns true if it holds.
proc libffi_feature_test { test } {
- set src "ffitest.c"
+ set src "ffitest[pid].c"
set f [open $src "w"]
puts $f "#include <ffi.h>"
puts $f $test
- puts $f "xyzzy"
+ puts $f "/* OK */"
+ puts $f "#else"
+ puts $f "# error Failed $test"
puts $f "#endif"
close $f
- set lines [libffi_target_compile $src "" "preprocess" ""]
+ set lines [libffi_target_compile $src /dev/null assembly ""]
file delete $src
- set last [lindex [split $lines] end]
- return [regexp -- "xyzzy" $last]
+ return [string match "" $lines]
}
# Utility routines.
Grüße
Thomas
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2016-02-25 19:10 ` Thomas Schwinge
@ 2016-02-25 19:49 ` Mike Stump
2016-02-25 20:15 ` Thomas Schwinge
2016-04-21 12:21 ` Thomas Schwinge
2016-05-23 15:05 ` [PR libffi/65567] libffi: Fix, and simply libffi_feature_test (was: [PATCH] libffi testsuite: Use split to ensure valid tcl list) Thomas Schwinge
2 siblings, 1 reply; 10+ messages in thread
From: Mike Stump @ 2016-02-25 19:49 UTC (permalink / raw)
To: Thomas Schwinge; +Cc: John David Anglin, GCC Patches, andreast
On Feb 25, 2016, at 11:10 AM, Thomas Schwinge <thomas@codesourcery.com> wrote:
> + set lines [libffi_target_compile $src /dev/null assembly “"]
Does this work on a dos box, or windows or other random non-posix systems?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2016-02-25 19:49 ` Mike Stump
@ 2016-02-25 20:15 ` Thomas Schwinge
2016-03-03 22:59 ` Mike Stump
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Schwinge @ 2016-02-25 20:15 UTC (permalink / raw)
To: Mike Stump; +Cc: John David Anglin, GCC Patches, andreast
Hi!
On Thu, 25 Feb 2016 11:45:06 -0800, Mike Stump <mikestump@comcast.net> wrote:
> On Feb 25, 2016, at 11:10 AM, Thomas Schwinge <thomas@codesourcery.com> wrote:
> > + set lines [libffi_target_compile $src /dev/null assembly “"]
>
> Does this work on a dos box, or windows or other random non-posix systems?
I don't know, and can't easily test. However, I had seen the same
pattern be used elsewhere, for example:
$ git grep dev/null -- libstdc++-v3/testsuite/lib/
libstdc++-v3/testsuite/lib/libstdc++.exp: set lines [v3_target_compile $src /dev/null executable ""]
[several more]
..., so assumed that to be OK.
Now that I'm reading [dejagnu]/target.exp:default_target_compile, I see
that for "[is_remote host]", it *always* passes "-o a.out" and then
"remote_upload host a.out $destfile", so "/dev/null" never escapes from
the system that DejaGnu/runtest is running on, which is always a POSIX
system as far as I know.
Otherwise, we could easily switch all these to a temporary output file,
which is then deleted right away...
Grüße
Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2016-02-25 20:15 ` Thomas Schwinge
@ 2016-03-03 22:59 ` Mike Stump
0 siblings, 0 replies; 10+ messages in thread
From: Mike Stump @ 2016-03-03 22:59 UTC (permalink / raw)
To: Thomas Schwinge; +Cc: John David Anglin, GCC Patches, andreast
On Feb 25, 2016, at 12:15 PM, Thomas Schwinge <thomas@codesourcery.com> wrote:
> On Thu, 25 Feb 2016 11:45:06 -0800, Mike Stump <mikestump@comcast.net> wrote:
>> On Feb 25, 2016, at 11:10 AM, Thomas Schwinge <thomas@codesourcery.com> wrote:
>>> + set lines [libffi_target_compile $src /dev/null assembly “"]
>>
>> Does this work on a dos box, or windows or other random non-posix systems?
>
> I don't know, and can't easily test. However, I had seen the same
> pattern be used elsewhere, for example:
>
> $ git grep dev/null -- libstdc++-v3/testsuite/lib/
> libstdc++-v3/testsuite/lib/libstdc++.exp: set lines [v3_target_compile $src /dev/null executable ""]
> [several more]
Ah, I would not worry about it then.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2016-02-25 19:10 ` Thomas Schwinge
2016-02-25 19:49 ` Mike Stump
@ 2016-04-21 12:21 ` Thomas Schwinge
2016-04-21 13:03 ` Jakub Jelinek
2016-05-23 15:05 ` [PR libffi/65567] libffi: Fix, and simply libffi_feature_test (was: [PATCH] libffi testsuite: Use split to ensure valid tcl list) Thomas Schwinge
2 siblings, 1 reply; 10+ messages in thread
From: Thomas Schwinge @ 2016-04-21 12:21 UTC (permalink / raw)
To: GCC Patches, Jakub Jelinek; +Cc: John David Anglin, andreast
[-- Attachment #1: Type: text/plain, Size: 2897 bytes --]
Hi!
Jakub, ping for gcc-6-branch (or, are you seeing useful libffi testing
results there?); I understand Mike's emails to mean that he's approved
the patch for trunk, so I'll commit it there, soon.
I also filed this as <https://github.com/atgreen/libffi/pull/237>; no
reaction so far.
On Thu, 25 Feb 2016 20:10:18 +0100, I wrote:
> Already had noticed something odd here months ago; now finally looked
> into it...
>
> On Sat, 28 Mar 2015 13:59:30 -0400, John David Anglin <dave.anglin@bell.net> wrote:
> > The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets.
> > See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65567>.
> >
> > Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
>
> (Got approved, and installed as r221765.)
>
> > 2015-03-28 John David Anglin <danglin@gcc.gnu.org>
> >
> > PR libffi/65567
> > * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
> > lindex is applied to a list.
> >
> > Index: testsuite/lib/libffi.exp
> > ===================================================================
> > --- testsuite/lib/libffi.exp (revision 221591)
> > +++ testsuite/lib/libffi.exp (working copy)
> > @@ -238,7 +239,7 @@
> > set lines [libffi_target_compile $src "" "preprocess" ""]
> > file delete $src
> >
> > - set last [lindex $lines end]
> > + set last [lindex [split $lines] end]
> > return [regexp -- "xyzzy" $last]
> > }
>
> On my several systems, this has the effect that any user of
> libffi_feature_test has their test results regress from PASS to
> UNSUPPORTED. Apparently the regexp xyzzy matching doesn't work as
> intended. If I revert your patch, it's OK for me -- but still not for
> you, I suppose. ;-)
>
> How about the followinginstead? It's conceptually simpler (and similar
> to what other such tests are doing), works for me -- but can you also
> please test this?
>
> --- libffi/testsuite/lib/libffi.exp
> +++ libffi/testsuite/lib/libffi.exp
> @@ -227,20 +227,21 @@ proc libffi_target_compile { source dest type options } {
>
> # TEST should be a preprocessor condition. Returns true if it holds.
> proc libffi_feature_test { test } {
> - set src "ffitest.c"
> + set src "ffitest[pid].c"
>
> set f [open $src "w"]
> puts $f "#include <ffi.h>"
> puts $f $test
> - puts $f "xyzzy"
> + puts $f "/* OK */"
> + puts $f "#else"
> + puts $f "# error Failed $test"
> puts $f "#endif"
> close $f
>
> - set lines [libffi_target_compile $src "" "preprocess" ""]
> + set lines [libffi_target_compile $src /dev/null assembly ""]
> file delete $src
>
> - set last [lindex [split $lines] end]
> - return [regexp -- "xyzzy" $last]
> + return [string match "" $lines]
> }
>
> # Utility routines.
Grüße
Thomas
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list
2016-04-21 12:21 ` Thomas Schwinge
@ 2016-04-21 13:03 ` Jakub Jelinek
0 siblings, 0 replies; 10+ messages in thread
From: Jakub Jelinek @ 2016-04-21 13:03 UTC (permalink / raw)
To: Thomas Schwinge; +Cc: GCC Patches, John David Anglin, andreast
On Thu, Apr 21, 2016 at 02:21:07PM +0200, Thomas Schwinge wrote:
> Hi!
>
> Jakub, ping for gcc-6-branch (or, are you seeing useful libffi testing
> results there?); I understand Mike's emails to mean that he's approved
> the patch for trunk, so I'll commit it there, soon.
>
> I also filed this as <https://github.com/atgreen/libffi/pull/237>; no
> reaction so far.
This IMNSHO isn't release critical, I'm not against applying it for 6.2, but
for 6.1 we should only get release critical stuff in now.
Jakub
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PR libffi/65567] libffi: Fix, and simply libffi_feature_test (was: [PATCH] libffi testsuite: Use split to ensure valid tcl list)
2016-02-25 19:10 ` Thomas Schwinge
2016-02-25 19:49 ` Mike Stump
2016-04-21 12:21 ` Thomas Schwinge
@ 2016-05-23 15:05 ` Thomas Schwinge
2 siblings, 0 replies; 10+ messages in thread
From: Thomas Schwinge @ 2016-05-23 15:05 UTC (permalink / raw)
To: John David Anglin, GCC Patches, andreast; +Cc: Mike Stump, Jakub Jelinek
Hi!
On Thu, 25 Feb 2016 20:10:18 +0100, I wrote:
> On Sat, 28 Mar 2015 13:59:30 -0400, John David Anglin <dave.anglin@bell.net> wrote:
> > The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets.
> > See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65567>.
> >
> > Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
>
> (Got approved, and installed as r221765.)
>
> > 2015-03-28 John David Anglin <danglin@gcc.gnu.org>
> >
> > PR libffi/65567
> > * testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
> > lindex is applied to a list.
> >
> > Index: testsuite/lib/libffi.exp
> > ===================================================================
> > --- testsuite/lib/libffi.exp (revision 221591)
> > +++ testsuite/lib/libffi.exp (working copy)
> > @@ -238,7 +239,7 @@
> > set lines [libffi_target_compile $src "" "preprocess" ""]
> > file delete $src
> >
> > - set last [lindex $lines end]
> > + set last [lindex [split $lines] end]
> > return [regexp -- "xyzzy" $last]
> > }
>
> On my several systems, this has the effect that any user of
> libffi_feature_test has their test results regress from PASS to
> UNSUPPORTED. Apparently the regexp xyzzy matching doesn't work as
> intended. If I revert your patch, it's OK for me -- but still not for
> you, I suppose. ;-)
>
> How about the followinginstead? It's conceptually simpler (and similar
> to what other such tests are doing), works for me -- but can you also
> please test this?
Committed to trunk in r236594:
commit 84c1a54dea2e39c012a11b49a898ed3773d3587b
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon May 23 14:54:04 2016 +0000
[PR libffi/65567] libffi: Fix, and simply libffi_feature_test
libffi/
PR libffi/65567
* testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236594 138bc75d-0d04-0410-961f-82ee72b054a4
---
libffi/ChangeLog | 5 +++++
libffi/testsuite/lib/libffi.exp | 11 ++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git libffi/ChangeLog libffi/ChangeLog
index 5027680..8245f5b 100644
--- libffi/ChangeLog
+++ libffi/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-23 Thomas Schwinge <thomas@codesourcery.com>
+
+ PR libffi/65567
+ * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
+
2016-03-17 Andreas Schwab <schwab@suse.de>
* src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
diff --git libffi/testsuite/lib/libffi.exp libffi/testsuite/lib/libffi.exp
index 169fe74..a0f6ab3 100644
--- libffi/testsuite/lib/libffi.exp
+++ libffi/testsuite/lib/libffi.exp
@@ -227,20 +227,21 @@ proc libffi_target_compile { source dest type options } {
# TEST should be a preprocessor condition. Returns true if it holds.
proc libffi_feature_test { test } {
- set src "ffitest.c"
+ set src "ffitest[pid].c"
set f [open $src "w"]
puts $f "#include <ffi.h>"
puts $f $test
- puts $f "xyzzy"
+ puts $f "/* OK */"
+ puts $f "#else"
+ puts $f "# error Failed $test"
puts $f "#endif"
close $f
- set lines [libffi_target_compile $src "" "preprocess" ""]
+ set lines [libffi_target_compile $src /dev/null assembly ""]
file delete $src
- set last [lindex [split $lines] end]
- return [regexp -- "xyzzy" $last]
+ return [string match "" $lines]
}
# Utility routines.
Backported to gcc-6-branch in r236595:
commit eb4cfb9897caae0af36c9bc496a104c9f8aa11c6
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon May 23 15:00:41 2016 +0000
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@236595 138bc75d-0d04-0410-961f-82ee72b054a4
---
libffi/ChangeLog | 7 +++++++
libffi/testsuite/lib/libffi.exp | 11 ++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git libffi/ChangeLog libffi/ChangeLog
index e00113c..c851366 100644
--- libffi/ChangeLog
+++ libffi/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-23 Thomas Schwinge <thomas@codesourcery.com>
+
+ Backport trunk r236594:
+
+ PR libffi/65567
+ * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
+
2016-04-27 Release Manager
* GCC 6.1.0 released.
diff --git libffi/testsuite/lib/libffi.exp libffi/testsuite/lib/libffi.exp
index 169fe74..a0f6ab3 100644
--- libffi/testsuite/lib/libffi.exp
+++ libffi/testsuite/lib/libffi.exp
@@ -227,20 +227,21 @@ proc libffi_target_compile { source dest type options } {
# TEST should be a preprocessor condition. Returns true if it holds.
proc libffi_feature_test { test } {
- set src "ffitest.c"
+ set src "ffitest[pid].c"
set f [open $src "w"]
puts $f "#include <ffi.h>"
puts $f $test
- puts $f "xyzzy"
+ puts $f "/* OK */"
+ puts $f "#else"
+ puts $f "# error Failed $test"
puts $f "#endif"
close $f
- set lines [libffi_target_compile $src "" "preprocess" ""]
+ set lines [libffi_target_compile $src /dev/null assembly ""]
file delete $src
- set last [lindex [split $lines] end]
- return [regexp -- "xyzzy" $last]
+ return [string match "" $lines]
}
# Utility routines.
And, as obvious, backported to gcc-5-branch in r236596:
commit e2b5ae708e24c5e37b30d7ca3690e6f123a5cdf0
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon May 23 15:03:08 2016 +0000
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@236596 138bc75d-0d04-0410-961f-82ee72b054a4
---
libffi/ChangeLog | 7 +++++++
libffi/testsuite/lib/libffi.exp | 11 ++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git libffi/ChangeLog libffi/ChangeLog
index 7bcce81..3307bfb 100644
--- libffi/ChangeLog
+++ libffi/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-23 Thomas Schwinge <thomas@codesourcery.com>
+
+ Backport trunk r236594:
+
+ PR libffi/65567
+ * testsuite/lib/libffi.exp (libffi_feature_test): Fix, and simply.
+
2015-12-04 Release Manager
* GCC 5.3.0 released.
diff --git libffi/testsuite/lib/libffi.exp libffi/testsuite/lib/libffi.exp
index 169fe74..a0f6ab3 100644
--- libffi/testsuite/lib/libffi.exp
+++ libffi/testsuite/lib/libffi.exp
@@ -227,20 +227,21 @@ proc libffi_target_compile { source dest type options } {
# TEST should be a preprocessor condition. Returns true if it holds.
proc libffi_feature_test { test } {
- set src "ffitest.c"
+ set src "ffitest[pid].c"
set f [open $src "w"]
puts $f "#include <ffi.h>"
puts $f $test
- puts $f "xyzzy"
+ puts $f "/* OK */"
+ puts $f "#else"
+ puts $f "# error Failed $test"
puts $f "#endif"
close $f
- set lines [libffi_target_compile $src "" "preprocess" ""]
+ set lines [libffi_target_compile $src /dev/null assembly ""]
file delete $src
- set last [lindex [split $lines] end]
- return [regexp -- "xyzzy" $last]
+ return [string match "" $lines]
}
# Utility routines.
Grüße
Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-05-23 15:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-28 17:59 [PATCH] libffi testsuite: Use split to ensure valid tcl list John David Anglin
2015-03-29 20:03 ` Andreas Tobler
2015-03-29 20:27 ` John David Anglin
2016-02-25 19:10 ` Thomas Schwinge
2016-02-25 19:49 ` Mike Stump
2016-02-25 20:15 ` Thomas Schwinge
2016-03-03 22:59 ` Mike Stump
2016-04-21 12:21 ` Thomas Schwinge
2016-04-21 13:03 ` Jakub Jelinek
2016-05-23 15:05 ` [PR libffi/65567] libffi: Fix, and simply libffi_feature_test (was: [PATCH] libffi testsuite: Use split to ensure valid tcl list) Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).