Disable large page testing on 32-bit platforms
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2024-05-02 16:28:38 +02:00
parent c41d6c8080
commit b0265950b6
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -38,6 +38,7 @@ import (
"runtime"
"slices"
"strings"
"unsafe"
)
import "testing"
@ -92,6 +93,10 @@ func testFlags(name string, flags Flags) (f Flags, skip bool) {
if largePageAllocator == nil {
return flags, true
}
if unsafe.Sizeof(uint(0)) < 8 {
//not 64-bit platforms
return flags, true
}
}
return flags, false