On Mon, 2008-05-19 at 15:30 +0800, Roy Lee wrote:
> Hi,
> 
>     syscalls/ipc/shmat01.c
>     syscalls/ipc/shmat02.c
> 
> Both of the above test cases has similar issue to shmt/mmap series.
> This patch removes the non-aligned addresses explicitly coded  for
> different architectures by 1) probing an available address by a pair of
> shmat/shmdt calls and 2) replaceing the addr with offset in the
> struct test_case_t.
> 

Well this breaks my compilation even on a i386 system. See the
compilation error:

cc -Wall  -I../../include -g -Wall -I../lib -I../../../../../include
-Wall    shmat01.c  -L../../../../../lib -lltp -L.. -lipc -o shmat01
shmat01.c:84: error: initializer element is not constant
shmat01.c:84: error: (near initialization for ‘TC[1].offset’)
shmat01.c: In function ‘setup’:
shmat01.c:259: warning: comparison between pointer and integer
make[5]: *** [shmat01] Error 1

Regards--
Subrata

> This fix needs to be verified on different architectures.
> Any comments on this fix or alternative ways to achieve the same goal?
> 
> Roy


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to