aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-10-20 17:20:30 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-10-20 17:13:05 +0000
commit9832ed61ae41048a549b0194edc9dcade0851e76 (patch)
tree3b4d1d445aa289a01dce4c8c88dca773caf0d542 /pkg/csource
parentd422939c290e3fc19df051371f56b5cc0ad645ee (diff)
pkg/csource: fix check for sysTarget.BrokenCompiler()
Make sure arches with the broken compiler are correctly skipped.
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/csource_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go
index f4cfe40a4..15dad5f34 100644
--- a/pkg/csource/csource_test.go
+++ b/pkg/csource/csource_test.go
@@ -43,11 +43,11 @@ func TestGenerate(t *testing.T) {
continue
}
t.Run(target.OS+"/"+target.Arch, func(t *testing.T) {
+ if err := sysTarget.BrokenCompiler; err != "" {
+ t.Skipf("target compiler is broken: %v", err)
+ }
full := !checked[target.OS]
if full || !testing.Short() {
- if err := sysTarget.BrokenCompiler; err != "" {
- t.Skipf("target compiler is broken: %v", err)
- }
checked[target.OS] = true
t.Parallel()
testTarget(t, target, full)