From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Tue, 13 Jul 2021 12:13:32 +0200 Subject: [LTP] [PATCH v4 1/7] tst_device: Require root In-Reply-To: <20210713101338.6985-1-pvorel@suse.cz> References: <20210713101338.6985-1-pvorel@suse.cz> Message-ID: <20210713101338.6985-2-pvorel@suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it as it's actually required for successful run: tst_device.c:100: TINFO: Not allowed to open /dev/loop-control. Are you root?: EACCES (13) tst_device.c:139: TINFO: No free devices found tst_device.c:335: TBROK: Failed to acquire device Signed-off-by: Petr Vorel --- The same as in v3. lib/newlib_tests/tst_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/newlib_tests/tst_device.c b/lib/newlib_tests/tst_device.c index ad077affd..0bee0a939 100644 --- a/lib/newlib_tests/tst_device.c +++ b/lib/newlib_tests/tst_device.c @@ -40,6 +40,7 @@ static void do_test(void) } static struct tst_test test = { + .needs_root = 1, .needs_device = 1, .dev_min_size = 300, .test_all = do_test, -- 2.32.0