forked from strace/strace
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: verify the auxstr of clone(2) when --namespace=new is given
Instead of adding a new test program, I extended tests/clone-flags.c for the tesing the auxstr. * tests/clone-flags.c: Include <sys/socket.h>. (child_sockpair): New file static variable. (retrieve_userns): New function. (wait_cloned) <userns_buf, userns_buflen>: New parameters for returning the id of the user namespace. (do_clone_newns): New macro. (child_with_pause): New function called in a new process created by clone. (main): Call do_clone_newns for making a process in a new namespace. * tests/clone-flags.test (run_strace_match_diff): Append -e namespace=new to the command line. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters