kernel/pty07: Skip test when TTY not available
PATCH v2 1/1 kernel/pty07: Skip test when TTY not available
Since TTY under test is hardcoded, it
might not be available in some systems.
Signed-off-by Bogdan Lezhepekov <[email protected]>
--- testcases/kernel/pty/pty07.c | 3 +++ 1 file changed, 3 insertions(+)
testcases/kernel/pty/pty07.c +3 -0
@@ -81,6 +81,9 @@ static void setup(void)struct vt_stat stat;sprintf (tty_path,"/dev/tty%d" , test_tty_port); +if (access (tty_path,F_OK )) +tst_brk (TCONF ,"TTY (/dev/tty%d) under test not available in system" , test_tty_port); + fd =SAFE_OPEN (tty_path,O_RDWR );SAFE_IOCTL (fd,VT_GETSTATE , &stat); vt_active = stat.v_active;
Signature · 5 lines
2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Both pushed, thanks.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp