linux_dsm_epyc7002/tools/testing/selftests/seccomp
Tycho Andersen fb024a07c6 selftests: don't kill child immediately in get_metadata() test
This this test forks a child, and then the parent waits for a write() to a
pipe signalling the child is ready to be attached to. If something in the
child ASSERTs before it does this write, the test will hang waiting for it.
Instead, let's EXPECT, so that execution continues until we do the write.
Any failure after that is fine and can ASSERT.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
2019-02-13 08:34:16 -07:00
..
.gitignore selftests: seccomp: update .gitignore with newly added tests 2017-11-15 08:01:42 -07:00
config selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
Makefile selftests: seccomp: use LDLIBS instead of LDFLAGS 2019-01-16 11:41:44 -07:00
seccomp_benchmark.c selftests/seccomp: Add simple seccomp overhead benchmark 2017-08-14 13:46:41 -07:00
seccomp_bpf.c selftests: don't kill child immediately in get_metadata() test 2019-02-13 08:34:16 -07:00