You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not the kind of race that Go race detector would catch; this is
a race when a /proc file of one thread is opened and when Go changes
the underlying thread, and that different thread tries to write to that
file descriptor.
In order to catch those reliably, we need quite a big number of
iterations, and we only need to test go-selinux stuff. I chose the
count to be 100000 because it takes about 1 minute on my machine:
[kir@kir-tp1 selinux]$ time go test -timeout 3m -count 100000 ./go-selinux
ok github.com/opencontainers/selinux/go-selinux 53.763s
real 0m53.983s
user 0m30.030s
sys 0m30.339s
Also note that this only makes sense to run on a SELinux enabled systems
(i.e. those we run under lima).
Signed-off-by: Kir Kolyshkin <[email protected]>
0 commit comments