From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1O7DTi-00057y-79 for ltp-list@lists.sourceforge.net; Wed, 28 Apr 2010 20:03:26 +0000 Received: from e35.co.us.ibm.com ([32.97.110.153]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1O7DTc-0005En-Kj for ltp-list@lists.sourceforge.net; Wed, 28 Apr 2010 20:03:26 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e35.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id o3SJvYgn001992 for ; Wed, 28 Apr 2010 13:57:34 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o3SK30Yf073314 for ; Wed, 28 Apr 2010 14:03:05 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o3SD2xvO003951 for ; Wed, 28 Apr 2010 07:02:59 -0600 Date: Wed, 28 Apr 2010 15:03:01 -0500 From: "Serge E. Hallyn" Message-ID: <20100428200301.GA16632@us.ibm.com> References: <1272444847.5696.9.camel@munipradeep-laptop> <20100428134252.GA31204@us.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [LTP] mqns tests are failing List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ltp-list-bounces@lists.sourceforge.net To: Garrett Cooper Cc: ltp-list@lists.sourceforge.net Quoting Garrett Cooper (yanegomi@gmail.com): > On Wed, Apr 28, 2010 at 6:42 AM, Serge E. Hallyn wrote: > > Quoting Garrett Cooper (yanegomi@gmail.com): > >> On Wed, Apr 28, 2010 at 1:54 AM, Munipradeep Beerakam > >> wrote: > >> > Hi, > >> > > >> > I noticed that mqns test cases are failing. I am using March 2010 LT= P. > >> > After changing mq_open syscall in mqns_01.c file, test is passing. S= ame > >> > thing is happening w.r.t. other mqns test cases. Below is the change= I > >> > made. > >> > > >> > Changed > >> > =A0 mqd =3D syscall(__NR_mq_open, SLASH_MQ1, O_RDWR|O_CREAT|O_EXCL,0= 777, > >> > NULL); > >> > > >> > to > >> > =A0 mqd =3D mq_open(SLASH_MQ1, O_RDWR|O_CREAT|O_EXCL, 0777, NULL); > >> > > >> > Failure output I got is below: > >> > # ./mqns_01 > >> > posixmq_namespace_01 =A0 =A00 =A0TINFO =A0: =A0Testing posix mq name= spaces through > >> > unshare(2). > >> > > >> > mq_open: Permission denied > >> > posixmq_namespace_01 =A0 =A01 =A0TFAIL =A0: =A0mq_open failed > >> > > >> > After changing as above, I got the below output: > >> > # ./mqns_01 > >> > posixmq_namespace_01 =A0 =A00 =A0TINFO =A0: =A0Testing posix mq name= spaces through > >> > unshare(2). > >> > > >> > posixmq_namespace_01 =A0 =A00 =A0TINFO =A0: =A0Checking namespaces i= solation from > >> > parent to child > >> > > >> > posixmq_namespace_01 =A0 =A01 =A0TPASS =A0: =A0child process didn't = find mqueue > >> > > >> > So, my question is that what is the difference between the two, i.e., > >> > the previous one and the changed one. Both are calling the same mq_o= pen > > > > See http://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg09073= .html > > for the ansswer. > > > >> > system call. But first one is failing whereas the second one is > >> > succeeding. > >> > > >> > So, do we need to modify all mqns test cases to the new form? > >> > >> =A0 =A0 Track down the execution path by first starting with glibc. It > >> might be a library vs kernel mismatch or a bug. Make sure that the > >> syscall number matches per your architecture, determine whether or not > >> your architecture has issues executing code in a biarch manner (64-bit > >> on 32-bit) if it applies. > >> HTH, > = > Ah, forgot about that... So had I :) And I think I'd assumed someone else would push the patch you suggested. I'll go ahead and send one later today. -serge ---------------------------------------------------------------------------= --- _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list