<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 7:40 PM, Cyril Hrubis <span dir="ltr"><<a target="_blank" href="mailto:chrubis@suse.cz">chrubis@suse.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<span class="gmail-m_1480860746909883156gmail-">> I'm running into compilation errors on older distros (RHEL5/6)<br>
> with this test:<br>
> <br>
</span>> pty02.c: In function ???do_test???:<br>
> pty02.c:34: error: ???EXTPROC??? undeclared (first use in this function)<br>
<span class="gmail-m_1480860746909883156gmail-">> pty02.c:34: error: (Each undeclared identifier is reported only once<br>
> pty02.c:34: error: for each function it appears in.)<br>
> make: *** [pty02] Error 1<br>
> <br>
> We should probably ifdef the test, because adding define to LAPI<br>
> still makes it fail:<br>
> <br>
> tst_test.c:1015: INFO: Timeout per run is 0h 05m 00s<br>
> pty02.c:44: BROK: tcsetattr() failed: EINVAL<br>
<br>
</span>Or we can return TCONF on EINVAL since EINVAL means unsupported value<br>
anyway...<br></blockquote><div><br><div class="gmail_default" style="font-size:small">Maybe at least we should do more try before skipping it when getting EINVAL. Because sometimes it also fails with EINVAL when using a termios structure that was not obtained using tcgeaatr(). tcsetattr() should use only a termios structure that was obtained by tcgetattr().<br><br> pty02.c works fine on mainline kernel-v4.17 after applying this:<br> <a target="_blank" href="http://lists.linux.it/pipermail/ltp/2018-May/008253.html">http://lists.linux.it/<wbr>pipermail/ltp/2018-May/008253.<wbr>html</a><br><br></div><div class="gmail_default" style="font-size:small">What do you think?<br></div><div class="gmail_default" style="font-size:small"><br></div></div></div>-- <br><div class="gmail-m_1480860746909883156gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div>
</div></div>