[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: Re: [LTP] [PATCH] patch for fcntl14 crash in blackfin uclinux
From: Subrata Modak <subrata () linux ! vnet ! ibm ! com>
Date: 2007-11-25 16:52:44
Message-ID: 1196009540.5790.2.camel () subratamodak ! linux ! ibm ! com
[Download RAW message or body]
Thanks for pointing that out. That same has been Applied.
--Subrata
On Fri, 2007-11-23 at 17:01 +0800, Vivi wrote:
> fcntl14 test case will crash on uclinux on blackfin board, eg:
> BF537-EZKIT
>
> patch is here for workaround solution to this bug:
> ---
> Index: testcases/kernel/syscalls/fcntl/fcntl14.c
> ===================================================================
> --- testcases/kernel/syscalls/fcntl/fcntl14.c (revision 120)
> +++ testcases/kernel/syscalls/fcntl/fcntl14.c (working copy)
> @@ -75,7 +75,7 @@ typedef struct {
> long b_start;
> long b_len;
> short c_type;
> - short c_whence;
> + int c_whence;
> long c_start;
> long c_len;
> short c_flag;
> @@ -579,6 +579,7 @@ setup(void)
> struct sigaction act;
> tst_sig(FORK, DEF_HANDLER, cleanup); /* capture signals */
> + signal(SIGHUP, SIG_IGN);
> umask(0);
> TEST_PAUSE; /* Pause if that option is specified */
> tst_tmpdir(); /* make temp dir and cd to it */
> @@ -1157,7 +1158,7 @@ int main(int ac, char **av)
> }
>
> /* spawn a child process */
> - if ((child = fork()) == 0) {
> + if ((child = FORK_OR_VFORK()) == 0) {
> #ifdef UCLINUX
> if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type,
> thiscase->c_whence, thiscase->c_start,
>
> ---
>
>
> Best regards,
> Violet Leigh
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ Ltp-list mailing list \
> Ltp-list@lists.sourceforge.net \
> https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic