Debian Codegraph @

debian/patches/0002-TestMkdirAllHandle_RacingCreate-avoid-1024-threads.patch

raw
1 From: Reinhard Tartler <[email protected]>
2 Date: Tue, 11 Nov 2025 06:25:47 -0500
3 Subject: TestMkdirAllHandle_RacingCreate: avoid 512, 1024 threads
4
5 Turns out to be too stressful and easily breaks on slower archs,
6 like i386
7 ---
8 pathrs-lite/mkdir_linux_test.go | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/pathrs-lite/mkdir_linux_test.go b/pathrs-lite/mkdir_linux_test.go
12 index d865dfa..499a69e 100644
13 --- a/pathrs-lite/mkdir_linux_test.go
14 +++ b/pathrs-lite/mkdir_linux_test.go
15 @@ -567,7 +567,7 @@ func TestMkdirAllHandle_RacingCreate(t *testing.T) { //nolint:revive // undersco
16 }
17 testutils.WithWithoutOpenat2(true, tRunWrapper(t), func(ti testutils.TestingT) {
18 t := ti.(*testing.T) //nolint:forcetypeassert // guaranteed to be true and in test code
19 - threadRanges := []int{2, 4, 8, 16, 32, 64, 128, 512, 1024}
20 + threadRanges := []int{2, 4, 8, 16, 32, 64, 128}
21 for _, numThreads := range threadRanges {
22 numThreads := numThreads
23 t.Run(fmt.Sprintf("threads=%d", numThreads), func(t *testing.T) {