[PATCH 1/4] tests: add sched_rr_get_interval.test

Dmitry V. Levin ldv at altlinux.org
Mon Apr 25 10:52:30 UTC 2016


On Mon, Apr 25, 2016 at 04:18:20PM +0800, Fei Jie wrote:
> * tests/sched_rr_get_interval.c: New file.
> * tests/sched_rr_get_interval.test: New test.
> * tests/.gitignore: Add sched_rr_get_interval.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add sched_rr_get_interval.test.
[...]
On Mon, Apr 25, 2016 at 04:18:21PM +0800, Fei Jie wrote:
> * tests/setdomainname.c: New file.
> * tests/setdomainname.test: New test.
> * tests/.gitignore: Add setdomainname.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add setdomainname.test.
[...]
On Mon, Apr 25, 2016 at 04:18:22PM +0800, Fei Jie wrote:
> * tests/rmdir.c: New file.
> * tests/rmdir.test: New test.
> * tests/.gitignore: Add rmdir.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add rmdir.test.
[...]

Applied, thanks.

On Mon, Apr 25, 2016 at 04:18:23PM +0800, Fei Jie wrote:
> * tests/symlink.c: New file.
> * tests/symlink.test: New test.
> * tests/.gitignore: Add symlink.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add symlink.test.
[...]
> diff --git a/tests/symlink.c b/tests/symlink.c
> new file mode 100644
> index 0000000..bb324aa
> --- /dev/null
> +++ b/tests/symlink.c
> @@ -0,0 +1,26 @@
> +#include "tests.h"
> +#include <sys/syscall.h>
> +
> +#ifdef __NR_symlink
> +
> +# include <stdio.h>
> +# include <unistd.h>
> +
> +int
> +main(void)
> +{
> +    static const char sample_1[] = "symlink_new";
> +    static const char sample_2[] = "symlink";
> +	long rc = syscall(__NR_symlink, sample_1, sample_2);
> +	printf("symlink(\"%s\", \"%s\") = %ld %s (%m)\n",
> +	       sample_1, sample_2, rc, errno2name());
> +
> +	puts("+++ exited with 0 +++");
> +	return 0;
> +}

Fixed indentation and applied, thanks.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160425/0a45cce1/attachment.bin>


More information about the Strace-devel mailing list