Fix TestGetAdditionalGroups on i686

Fixes: #941

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang
2016-09-27 06:02:22 -04:00
parent 650c97a111
commit dc0a4cf488
2 changed files with 19 additions and 7 deletions
+5
View File
@@ -9,6 +9,7 @@ import (
"path/filepath"
"strings"
"syscall"
"unsafe"
)
const (
@@ -119,3 +120,7 @@ func Annotations(labels []string) (bundle string, userAnnotations map[string]str
}
return
}
func GetIntSize() int {
return int(unsafe.Sizeof(1))
}