Skip to contentSkip to conversation

set_thread_area: fix error with -m32 in x86_64

PATCH Cyril Hrubis 1 participant 1 message Aug 25, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi!

Quoted 9 lines

When making with -m32 in x86_64 kernel, the cases will fail. Please refer to the following log.

# ./set_thread_area01
set_thread_area01    1  TFAIL  :  failed - errno = 22 : Invalid argument
# ./set_thread_area02
set_thread_area_02    1  TFAIL  :  call get_thread_area() failed: TEST_ERRNO=EINVAL(22): Invalid argument

Thanks for pointing this out, however I have even better solution. If we change the test to do set_thread_area() with entry_number -1, we would get correct entry_number set by the syscall. I'll commit a patch for this in a minute. Please test the change once it gets into git.

Signature · 12 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list