* [PATCH 3/4] Gccgo port to s390[x] -- part II
@ 2014-11-04 12:15 Dominik Vogt
2014-11-05 4:05 ` [gofrontend-dev] " Ian Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Vogt @ 2014-11-04 12:15 UTC (permalink / raw)
To: gcc-patches; +Cc: gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 101 bytes --]
See commit comment and ChangeLog for details.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
[-- Attachment #2: 0003-ChangeLog --]
[-- Type: text/plain, Size: 130 bytes --]
gcc/testsuite/ChangeLog
2014-11-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
* go.test/go-test.exp: Add handling of "// +build".
[-- Attachment #3: 0003-go.test-Add-handling-of-build-to-go-test.exp.patch --]
[-- Type: text/x-diff, Size: 1613 bytes --]
From 12f9861253b1c9b8758b5356daedad98bfc044c4 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Tue, 4 Nov 2014 10:13:39 +0100
Subject: [PATCH 3/4] go.test: Add handling of "// +build" to go-test.exp.
---
gcc/testsuite/go.test/go-test.exp | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index fd83722..71272a3 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -449,13 +449,22 @@ proc go-gc-tests { } {
}
if { [ string match "// +build *" $test_line ] } {
- if { [ string match "*[getenv GOARCH]*" $test_line ] } {
- continue
- }
- if { [ string match "*linux*" $test_line ] } {
- continue
+ set matches_pos 0
+ set matches_neg 0
+ if { [ regexp -line "\[ \][getenv GOARCH]\(\[ \]\|\$\)" $test_line ] } {
+ set matches_pos 1
+ } elseif { [ regexp -line "\[ \]\![getenv GOARCH]\(\[ \]\|\$\)" $test_line ] } {
+ set matches_neg 1
+ } elseif { [ regexp -line "\[ \]linux\(\[ \]\|\$\)" $test_line ] } {
+ set matches_pos 1
+ } elseif { [ regexp -line "\[ \]\!linux\(\[ \]\|\$\)" $test_line ] } {
+ set matches_neg 1
+ } elseif { [ regexp -line "\[ \]\!windows\(\[ \]\|\$\)" $test_line ] } {
+ set matches_pos 1
+ } elseif { [ regexp -line "\[ \]windows\(\[ \]\|\$\)" $test_line ] } {
+ set matches_neg 1
}
- if { [ string match "*!windows*" $test_line ] } {
+ if { $matches_pos == 1 && $matches_neg == 0 } {
continue
}
close $fd
--
1.8.4.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gofrontend-dev] [PATCH 3/4] Gccgo port to s390[x] -- part II
2014-11-04 12:15 [PATCH 3/4] Gccgo port to s390[x] -- part II Dominik Vogt
@ 2014-11-05 4:05 ` Ian Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Taylor @ 2014-11-05 4:05 UTC (permalink / raw)
To: Dominik Vogt, gcc-patches, gofrontend-dev
I committed this patch.
Thanks.
I changed the ChangeLog entry to this, since your ChangeLog entry
didn't seem accurate to me.
2014-11-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
* go.test/go-test.exp: In +build lines, require whitespace around
expected strings, fix check for negation.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-05 4:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-04 12:15 [PATCH 3/4] Gccgo port to s390[x] -- part II Dominik Vogt
2014-11-05 4:05 ` [gofrontend-dev] " Ian Taylor
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).