mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
virtcontainers: Set correct Shmsize for ppc64le
Fix the test case TestGetShmSizeBindMounted by setting the right ShmSize for ppc64le. Fixes: #1702 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
parent
10c14bcb38
commit
1789b65c93
@ -13,6 +13,7 @@ import (
|
||||
"path"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
@ -816,6 +817,10 @@ func TestGetShmSizeBindMounted(t *testing.T) {
|
||||
assert.Nil(t, err)
|
||||
|
||||
size := 8192
|
||||
if runtime.GOARCH == "ppc64le" {
|
||||
// PAGE_SIZE on ppc64le is 65536
|
||||
size = 65536
|
||||
}
|
||||
|
||||
shmOptions := "mode=1777,size=" + strconv.Itoa(size)
|
||||
err = unix.Mount("shm", shmPath, "tmpfs", unix.MS_NOEXEC|unix.MS_NOSUID|unix.MS_NODEV, shmOptions)
|
||||
|
Loading…
Reference in New Issue
Block a user