libaudit-go icon indicating copy to clipboard operation
libaudit-go copied to clipboard

libaudit-go requires root to run go tests

Open ameihm0912 opened this issue 9 years ago • 0 comments

Right now go test fails unless the test is run as root, and netlink is available

--- FAIL: TestNetlinkConnection (0.00s) libaudit_test.go:43: NewNetlinkConnection failed not root user, exiting panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x493db8]

It would be good if the tests could run as a regular user, potentially using an emulated netlink socket or something with a consistent event feed

ameihm0912 avatar Aug 02 '16 21:08 ameihm0912