[Lsb-messages] /var/www/bzr/lsb/devel/runtime-test r1286: Just allow ENOTTY as an invalid ioctl response (bug 3768).

Jeff Licquia licquia at linuxfoundation.org
Mon Aug 5 22:43:47 UTC 2013


------------------------------------------------------------
revno: 1286
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: runtime-test
timestamp: Mon 2013-08-05 18:43:47 -0400
message:
  Just allow ENOTTY as an invalid ioctl response (bug 3768).
modified:
  modules/vsx-pcts/tset/POSIX.os/files/ioctl/ioctl.c
-------------- next part --------------
=== modified file 'modules/vsx-pcts/tset/POSIX.os/files/ioctl/ioctl.c'
--- a/modules/vsx-pcts/tset/POSIX.os/files/ioctl/ioctl.c	2013-08-05 21:43:12 +0000
+++ b/modules/vsx-pcts/tset/POSIX.os/files/ioctl/ioctl.c	2013-08-05 22:43:47 +0000
@@ -151,6 +151,7 @@
  * test3():
  * This test case checks ioctl for return value -1.
  * If the request or third parameter is not valid, errno is set to EINVAL.
+ * Later kernels also will set errno to ENOTTY; allow either.
  */
 private void
 test3()
@@ -178,8 +179,8 @@
     }
     else {
         err=errno;
-        if (err != EINVAL) {
-                tet_printf("errno was set to %d, it is expected to be %d[EINVAL]", err,EINVAL);
+        if ((err != EINVAL) && (err != ENOTTY)) {
+                tet_printf("errno was set to %d, it is expected to be %d[EINVAL] or %d[ENOTTY]", err, EINVAL, ENOTTY);
                 tet_result(TET_FAIL);
         }
         else {



More information about the lsb-messages mailing list