From 28bd3e371b1f31cb243f0df56b9c7720971a89db Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 10 Dec 2018 15:49:04 +0100 Subject: prog: support AUTO args in programs AUTO arguments can be used for: - consts - lens - pointers For const's and len's AUTO is replaced with the natural value, addresses for AUTO pointers are allocated linearly. This greatly simplifies writing test programs by hand as most of the time we want these natural values. Update tests to use AUTO. --- sys/linux/test/file_immutable | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/linux/test/file_immutable') diff --git a/sys/linux/test/file_immutable b/sys/linux/test/file_immutable index e6a18240b..61ad6b36a 100644 --- a/sys/linux/test/file_immutable +++ b/sys/linux/test/file_immutable @@ -3,8 +3,8 @@ # It also requires root, so will fail with setuid. # requires: -sandbox=namespace -sandbox=setuid -r0 = openat(0xffffffffffffff9c, &(0x7f0000000000)='./file0\x00', 0x26e1, 0x0) -ioctl$FS_IOC_FSSETXATTR(r0, 0x40086602, &(0x7f0000000100)={0x17e}) -mkdirat(0xffffffffffffff9c, &(0x7f0000000200)='./file1\x00', 0x1ff) -r1 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./file1\x00', 0x0, 0x0) -ioctl$FS_IOC_FSSETXATTR(r1, 0x40086602, &(0x7f0000000100)={0x17e}) +r0 = openat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x26e1, 0x0) +ioctl$FS_IOC_FSSETXATTR(r0, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, 0x0}) +mkdirat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x1ff) +r1 = openat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x0, 0x0) +ioctl$FS_IOC_FSSETXATTR(r1, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, 0x0}) -- cgit mrf-deployment