aboutsummaryrefslogtreecommitdiff
path: root/syscall_linux_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'syscall_linux_test.go')
-rw-r--r--syscall_linux_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/syscall_linux_test.go b/syscall_linux_test.go
index 9e64cf7..6b468f6 100644
--- a/syscall_linux_test.go
+++ b/syscall_linux_test.go
@@ -12,3 +12,8 @@ func (m *mocksyscall) Mmap(fd int, offset int64, length int, prot int, flags int
args := m.Called(fd, offset, length, prot, flags)
return args.Get(0).([]byte), args.Error(1)
}
+
+func (m *mocksyscall) Munmap(b []byte) error {
+ args := m.Called(b)
+ return args.Error(0)
+}