[prev in list] [next in list] [prev in thread] [next in thread] 

List:       strace
Subject:    Re: [PATCH 1/2] tests: add mount.test
From:       "Dmitry V. Levin" <ldv () altlinux ! org>
Date:       2016-05-26 15:00:39
Message-ID: 20160526150039.GD8228 () altlinux ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic