Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected], 
[email protected]
Control: affects -1 + src:golang-github-maxatome-go-testdeep
User: [email protected]
Usertags: pu

[ Reason ]
Fix FTBFS bug #1102313.

[ Impact ]
Not everybody will be able to build the package.

[ Tests ]
I've checked that the package builds ok again on the systems where it used to 
fail.

[ Risks ]
Very low. We are just conditionally skipping a test when we know that it will 
fail
(i.e. on single-cpu systems).

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
See changelog.

[ Other info ]
Change is trivial. I will upload the package next.
diff -Nru golang-github-maxatome-go-testdeep-1.14.0/debian/changelog 
golang-github-maxatome-go-testdeep-1.14.0/debian/changelog
--- golang-github-maxatome-go-testdeep-1.14.0/debian/changelog  2023-12-28 
00:43:21.000000000 +0100
+++ golang-github-maxatome-go-testdeep-1.14.0/debian/changelog  2026-09-28 
21:25:00.000000000 +0200
@@ -1,3 +1,11 @@
+golang-github-maxatome-go-testdeep (1.14.0-1+deb13u1) trixie; urgency=medium
+
+  * Team upload.
+  * Skip TestParallel/Run_with_Parallel on single-CPU systems.
+    Closes: #1102313.
+
+ -- Santiago Vila <[email protected]>  Mon, 28 Sep 2026 21:25:00 +0200
+
 golang-github-maxatome-go-testdeep (1.14.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru golang-github-maxatome-go-testdeep-1.14.0/debian/patches/series 
golang-github-maxatome-go-testdeep-1.14.0/debian/patches/series
--- golang-github-maxatome-go-testdeep-1.14.0/debian/patches/series     
1970-01-01 01:00:00.000000000 +0100
+++ golang-github-maxatome-go-testdeep-1.14.0/debian/patches/series     
2026-09-28 21:25:00.000000000 +0200
@@ -0,0 +1 @@
+single-cpu.patch
diff -Nru 
golang-github-maxatome-go-testdeep-1.14.0/debian/patches/single-cpu.patch 
golang-github-maxatome-go-testdeep-1.14.0/debian/patches/single-cpu.patch
--- golang-github-maxatome-go-testdeep-1.14.0/debian/patches/single-cpu.patch   
1970-01-01 01:00:00.000000000 +0100
+++ golang-github-maxatome-go-testdeep-1.14.0/debian/patches/single-cpu.patch   
2026-09-28 21:25:00.000000000 +0200
@@ -0,0 +1,25 @@
+From: Santiago Vila <[email protected]>
+Subject: Skip TestParallel on single-CPU systems
+Bug-Debian: https://bugs.debian.org/1102313
+
+--- a/td/t_struct_test.go
++++ b/td/t_struct_test.go
+@@ -8,6 +8,7 @@
+ 
+ import (
+       "regexp"
++      "runtime"
+       "strings"
+       "sync"
+       "testing"
+@@ -136,6 +137,10 @@
+               // in parallel. We use a WaitGroup to make both subtests block
+               // until they're both ready. This test will block forever if
+               // the tests are not run together.
++              if runtime.GOMAXPROCS(0) < 2 {
++                      tt.Skip("not enough CPUs to run parallel tests")
++              }
++
+               var ready sync.WaitGroup
+               ready.Add(2)
+ 

Reply via email to