[PATCH 1/2] tests: add mount.test

Dmitry V. Levin ldv at altlinux.org
Thu May 26 15:00:39 UTC 2016


On Thu, May 19, 2016 at 03:58:36PM +0800, Fei Jie wrote:
[...]
> +int
> +main(void)
> +{
> +	static const char source[] = "mount_source";
> +	static const char target[] = "mount_target";
> +	long rc = syscall(__NR_mount, source, target, "ext2", MS_INVAL, NULL);
> +	printf("mount(\"%s\", \"%s\", \"ext2\", %#x /* MS_??? */, NULL)"
> +	       " = %ld %s (%m)\n", source, target, MS_INVAL, rc, errno2name());
> +
> +	puts("+++ exited with 0 +++");
> +	return 0;

We want a better test coverage than this, so I've committed a more
comprehensive test.


-- 
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/20160526/352f8c90/attachment.bin>


More information about the Strace-devel mailing list