Debian Codegraph @

debian/patches/0003-Skip-TestDB_HugeValue-to-avoid-crash-on-32bit.patch

raw symbols SCIP
1 Fromscip-debian debian golang-github-coreos-bbolt 1.4.3-1 golang-github-coreos-bbolt/patches/`0003-Skip-TestDB_HugeValue-to-avoid-crash-on-32bit.patch`#From.: Reinhard Tartler <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian golang-github-coreos-bbolt 1.4.3-1 golang-github-coreos-bbolt/patches/`0003-Skip-TestDB_HugeValue-to-avoid-crash-on-32bit.patch`#Date.: Sat, 9 Aug 2025 12:45:50 -0400
3 Subjectscip-debian debian golang-github-coreos-bbolt 1.4.3-1 golang-github-coreos-bbolt/patches/`0003-Skip-TestDB_HugeValue-to-avoid-crash-on-32bit.patch`#Subject.: Skip TestDB_HugeValue to avoid crash on 32bit
4
5 Bug-Upstream: https://github.com/etcd-io/bbolt/issues/1044
6 ---
7 db_test.go | 6 ++++++
8 1 file changed, 6 insertions(+)
9
10 diff --git a/db_test.goscip-debian debian golang-github-coreos-bbolt 1.4.3-1 golang-github-coreos-bbolt/upstream/`db_test.go`: b/db_test.goscip-debian debian golang-github-coreos-bbolt 1.4.3-1 golang-github-coreos-bbolt/upstream/`db_test.go`:
11 index 1c13b6b..495b7b3 100644
12 --- a/db_test.go
13 +++ b/db_test.go
14 @@ -15,6 +15,7 @@ import (
15 "sync"
16 "testing"
17 "time"
18 + "runtime"
19 "unsafe"
20
21 "github.com/stretchr/testify/assert"
22 @@ -1375,6 +1376,11 @@ func TestDBUnmap(t *testing.T) {
23 }
24
25 func TestDB_HugeValue(t *testing.T) {
26 + // skip on 32bit
27 + if unsafe.Sizeof(uintptr(0)) == 4 {
28 + t.Skipf("Skipping on 32-bit arch (%s): huge value test exceeds slice bounds", runtime.GOARCH)
29 + }
30 +
31 dbPath := filepath.Join(t.TempDir(), "db")
32 db, err := bolt.Open(dbPath, 0600, nil)
33 require.NoError(t, err)