summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-21 14:48:50 +0100
committerGitHub <noreply@github.com>2020-03-21 14:48:50 +0100
commit89a3e5979b5f247e83a1723c7f355983fa7c7a86 (patch)
treeb984a7371d05de8713df0f662eca8a33935f9c30 /libpod
parent195a82ffbc435716ef5bb69f6eefa333abe3f840 (diff)
parentde7bcca7d5b0129329b6b08fd241cdc1a768bafb (diff)
downloadpodman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.gz
podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.bz2
podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.zip
Merge pull request #5579 from mtrmac/macOS-unit-tests
Make macOS unit tests runnable
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_top_unsupported.go6
-rw-r--r--libpod/lock/shm/shm_lock_test.go2
-rw-r--r--libpod/util_unsupported.go2
3 files changed, 9 insertions, 1 deletions
diff --git a/libpod/container_top_unsupported.go b/libpod/container_top_unsupported.go
index 382c98b54..12f6cbb6c 100644
--- a/libpod/container_top_unsupported.go
+++ b/libpod/container_top_unsupported.go
@@ -4,6 +4,12 @@ package libpod
import "github.com/containers/libpod/libpod/define"
+// Top gathers statistics about the running processes in a container. It returns a
+// []string for output
+func (c *Container) Top(descriptors []string) ([]string, error) {
+ return nil, define.ErrNotImplemented
+}
+
// GetContainerPidInformation returns process-related data of all processes in
// the container. The output data can be controlled via the `descriptors`
// argument which expects format descriptors and supports all AIXformat
diff --git a/libpod/lock/shm/shm_lock_test.go b/libpod/lock/shm/shm_lock_test.go
index 830035881..41a150c59 100644
--- a/libpod/lock/shm/shm_lock_test.go
+++ b/libpod/lock/shm/shm_lock_test.go
@@ -1,3 +1,5 @@
+// +build linux
+
package shm
import (
diff --git a/libpod/util_unsupported.go b/libpod/util_unsupported.go
index 9a9a6eeb6..4c5616bd0 100644
--- a/libpod/util_unsupported.go
+++ b/libpod/util_unsupported.go
@@ -25,7 +25,7 @@ func assembleSystemdCgroupName(baseSlice, newSlice string) (string, error) {
// LabelVolumePath takes a mount path for a volume and gives it an
// selinux label of either shared or not
-func LabelVolumePath(path string, shared bool) error {
+func LabelVolumePath(path string) error {
return define.ErrNotImplemented
}