diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2023-02-06 19:06:27 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2023-02-06 19:06:27 -0800 |
commit | dbb9617e6f78784678776b9df197ac24228ac30d (patch) | |
tree | c169f226467c4a98d8b1ddeaf0b617377bd50889 | |
parent | b6d210ee03405f05152542807ee71b1e9c87fe60 (diff) | |
download | libcap-dbb9617e6f78784678776b9df197ac24228ac30d.tar.gz |
Sigh. Fix some copy-pasta errors with psx_test.go changes.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | psx/psx_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psx/psx_test.go b/psx/psx_test.go index 922e7e4..40a543f 100644 --- a/psx/psx_test.go +++ b/psx/psx_test.go @@ -63,12 +63,12 @@ func TestShared(t *testing.T) { if !ok { break } - got, _, e := Syscall3(syscall.SYS_PRCTL, prGetKeepCaps, val, 0) + got, _, e := Syscall3(syscall.SYS_PRCTL, prGetKeepCaps, 0, 0) if e != 0 { - t.Fatalf("[%d] psx:prctl(SET_KEEPCAPS, %d) failed: %v", tid, val, syscall.Errno(e)) + t.Fatalf("[%d] psx:prctl(GET_KEEPCAPS) ?= %d failed: %v", tid, val, syscall.Errno(e)) } if got != val { - t.Errorf("bad keepcaps value [%d]: got=%d, want=%d", tid, got, val) + t.Errorf("[%d] bad keepcaps value: got=%d, want=%d", tid, got, val) } if _, ok := <-ch; !ok { break |