github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/os/getpagesize_test.go (about) 1 //go:build windows || darwin || (linux && !baremetal) || wasip1 2 3 package os_test 4 5 import ( 6 "os" 7 "testing" 8 ) 9 10 func TestGetpagesize(t *testing.T) { 11 pagesize := os.Getpagesize() 12 if pagesize == 0x1000 || pagesize == 0x4000 || pagesize == 0x10000 { 13 return 14 } 15 t.Errorf("os.Getpagesize() returns strange value %d", pagesize) 16 }