[PATCH] librt: Add shm_open and shm_unlink + testcase

Mikael Lund Jepsen, ICCC mlj at iccc.dk
Wed Feb 11 08:16:04 UTC 2009


Carmelo Amoroso wrote:
> Mikael Lund Jepsen, ICCC wrote:
>   
>> Hi all,
>> I've made a number of changes since my original post, taking both Joakim
>> and Bernards changes into consideration.
>> I hope they address their concerns properly. Most importantly, I now
>> malloc a buffer of an appropriate size instead of statically allocating
>> one as in the original newlib implementation.
>>
>> The test code compiles fine within the test suite (make check), but I
>> seem unable to test the exact compile made by the suite, as I am cross
>> compiling for arm.
>>     
> in cross compialation, you must go in two steps:
>
> first build:
>
> make UCLIBC_ONLY=y TEST_INSTALLED_UCLIBC=y test_compile
>
> then install tests on the target (look at nptl branch Makefile.in
> where there is a istall_test target not available on trunk... likely I'll add it too)
>
> and on target run
>
> make UCLIBC_ONLY=y run
>   
I do not compile on my target (and have no need for doing so) so for me 
it is good enough to compile the test app "outside" the suite and run 
manually on the target. Everyone else can use it within the suite to 
test their own environment.

If there are no other objections to the patch, I propose to commit it. 
Any volunteers?
TIA,
Mikael
>   
>> Uploading the test app to my target does not work as the lib paths are
>> then of course wrong.
>>     
> you should compile tests with TEST_INSTALLED_UCLIBC=y so that the INTERP
> entry in the ELF will looks like /lib/ld-uClibc.so.0 instead on pointing
> to the full path on the build machine
>
>  Compiling "manually" with my toolchain (i.e. not
>   
>> using the test suite make system) works fine - and also passes the test
>> when run on my target. Am I missing something in the way I compile/setup
>> the test suite?
>>
>> For convenience, as requested by Bernard:
>>   text    data     bss     dec     hex filename
>>    264       0       0     264     108 librt/shm_open.os
>>    172       0       0     172      ac librt/shm_unlink.os
>>
>> Please take a look and let me know if I should change anything.
>> Thanks,
>> Mikael
>>
>>     
>
> Cheers,
> Carmelo
>   
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> uClibc mailing list
>> uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc
>>     
>
>   

-- 


Mikael Lund Jepsen, Software Engineer

ICCC A/S, Telegrafvej 5 B, 2750 Ballerup, DENMARK

Phone: 	+45 44 86 04 00
Direct: 	+45 44 86 04 25
Fax: 	+45 44 86 03 99
  	 
Email: 	mlj at iccc.dk <mailto:mlj at iccc.dk>
Web: 	www.iccc.dk <http://www.iccc.dk>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090211/7c553b7a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iccc.gif
Type: image/gif
Size: 2102 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090211/7c553b7a/attachment.gif>


More information about the uClibc mailing list