summaryrefslogtreecommitdiff
path: root/tests/bionic/libc/common
AgeCommit message (Collapse)Author
2014-11-12bionic libc tests: clean up tests for seteuid callYongqin Liu
Clean up files and settings for seteuid test here, Since the tests will be migrated to unistd.seteuid* test in bionic/tests/unistd_test.cpp file Change-Id: Ia24b03c1e9a73e5e6c532e591a9d532253f0b9d1 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-11-03bionic libc tests: clean up test_udp.cYongqin Liu
clean up the file and setting for file tests/bionic/libc/common/test_udp.c Change-Id: Id7889910e87309415b9504e6693322697907f426 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-28bionic test libc: clean up test for pthread_onceYongqin Liu
the test implemented in file tests/bionic/libc/common/test_pthread_once.c has been re-implemented in file bionic/test/pthread_once_smoke by the tests pthread.pthread_once_smoke and pthread.pthread_once_1934122, so here remove the related file and settings Change-Id: I2c8d6f8a07419d4840512736cf264a86482f7eaf Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-24bionic libs test: clean up for gethostname testYongqin Liu
since the tests for gethostname will be migrated into bionic/tests/unistd_test.cpp as unistd.gethostname test in the gtest format, the related files and settings will be cleaned up here. Change-Id: Ibe2bc9d3304ec9ac08a24a318276f07b84a1afea Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-24bionic libc test: clean up test_static_cpp_mutex testYongqin Liu
delete related file and setting for test test_static_cpp_mutex, since it is migrated into bionic/tests/pthread_test.cpp in gtest format Change-Id: Ia9d165b18410c40a6f07a3b0b23d53bf8e355d05 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-23bionic libc tests: clean up tests for destructor in executableYongqin Liu
The tests for constructor/destructor in an executable file have been re-implemented by tests: dlfcn.ctor_function_call in bionic/tests/dlfcn_test.cpp atexit.exit in bionic/tests/atexit_test.cpp So it's no meaning keep the tests for destructor in executable here any more, and this change is to clean those files and settings up. One thing list here is that in this system/extras directory, tests for destructor in executable are tested both in statically linked format and dynamically linked format. But in the bionic/tests, it is only tested in dynamically linked format. But this should not the reason to keep the test files and settings here. Change-Id: I0ceb0450ca53b43bcf8473d54f08103519486992 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-23bionic libc test: remove gethostbyname testYongqin Liu
The change is to remove the implementation for gethostbyname bionic test here, since the new test implementation will be done under bionic/test/netdb_test.cpp Change-Id: Idd52e3bd6d623a59d64b4f5fc84eb66856970941 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-22Merge "bionic libc test: remove getaddrinfo test"Elliott Hughes
2014-10-22bionic libc test: clean up test for dlopen_nullYongqin Liu
The test for dlopen function with null specified have been re-implemented by dlfcn.dladdr test in bionic/tests/dlfcn_test.cpp. so here deleted it for cleaning up Change-Id: I99c3d1d2252b41c7484310fa20a1298d80ad565c Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-10-21bionic libc test: remove getaddrinfo testYongqin Liu
The change is to remove the implementation for getaddrinfo bionic test here, since the new test implementation will be done under bionic/test/netdb_test.cpp Change-Id: I0a23a6b823530be30fca13e87ac067f8ce70f495 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-09-22Remove another obsolete test.Elliott Hughes
Change-Id: Ic4629a5e2cba6431d4bd138c260bb8889df0ad78
2014-09-19Merge "Remove a useless pthread_join test."Elliott Hughes
2014-09-18Remove a useless pthread_join test.Elliott Hughes
Change-Id: Ie37deaf62338e541434115d6b7ae748cc38b85a3
2014-09-18Remove obsolete semaphore tests.Elliott Hughes
Change-Id: I96d0dbbb8d3482a19ce33e389971451fa630c84a
2014-09-17Remove some obviously useless tests (and fix the others so they build).Elliott Hughes
Some of these tests are stupid (hello_world.cpp), others are already replaced by more complete tests in bionic (test_cpu_set.cpp). Change-Id: Ie6d2723b049b4e9bb1b98ae0166be2c19551fdd0
2014-03-11Remove test_pthread_getcpuclockid.Elliott Hughes
Bionic already has a better test that's part of CTS. Change-Id: I2e6bfb795d5fe1393432673a082338d85c083444
2014-03-11Remove obsolete benchmarks.Elliott Hughes
bionic now has all of these. Change-Id: I0b65f019b88bc9ac7d33bd424361497320c66b7b
2014-03-10Remove <time.h> tests.Elliott Hughes
I've turned the strftime and strptime tests into CTS tests, and it's not obvious what the other test was usefully testing. Change-Id: I9d0ba08c6f2e2170e902e4a2aa379dd7289bdf6c
2014-03-10Remove tests that are already better tested as part of CTS.Elliott Hughes
Change-Id: I06592a245c2229ca455156bab40eb1a815eef75b
2012-08-09Merge "Avoid dereferencing NULL pointer with memcmp in the test code."Jean-Baptiste Queru
2012-01-31Avoid dereferencing NULL pointer with memcmp in the test code.Mark Gonzales
Signed-Off-By: Bhanu Chetlapalli <bhanu@mips.com>
2011-12-07libc: Add pthread and stdio benchmark test programs.David 'Digit' Turner
This patch adds two test programs to system/extras/test/bionic/libc The first one can be used to benchmark simple stdio operation (for now fread() / fwrite()). The second one can be used to benchmark misc. pthread operations. It can also easily be built with other toolchains for comparison with other C library / pthread implementations. Change-Id: I3e611244f3ff95e7485d8b8d6f91e5b8bab2de4b
2011-01-17Minimal test program for clock(3)Glenn Kasten
Change-Id: I4fcf6e3c6ed55f1db96dc93e6809b35d7719d32f
2011-01-11Test cases for strptimeGlenn Kasten
Change-Id: I43484c7333a967bac527752f4a4f75ec1ab420e3
2010-12-20libc tests: Add a drand48() testDavid 'Digit' Turner
+ Add a script to run a specific test on a device easily. Change-Id: Icaf050bc1c3b6aef3498e253badd63344a7d442f
2010-12-06Add <sched.h> unit tests for cpu_set_tDavid 'Digit' Turner
This adds test_cpu_set to check the new features provided by <sched.h> around cpu_set_t (i.e. CPU_SETSIZE, CPU_ZERO, CPU_SET, sched_getaffinity, sched_setaffinity, sched_getcpu, ...) Change-Id: I59030badb6f6c7560f7cb48fcfa722e8d7b9b1b9
2010-10-21tests: Refine Bionic dlclose destruction test.David 'Digit' Turner
The purpose of this change is to test that C constructors and destructors contained in shared libraries are properly called when the corresponding libs are loaded and unloaded through dlopen() and dlclose(), or when the program exits. The test_dlclose_destruction test already performs this for static C++ construction/destruction. The change refines it with another shared library that uses __attribute__((constructor)) and __attribute__((destructor)) from C instead (see the new libdlclosetest2 shared library). A new test, test_executable_destructor is also added to check that the constructor and destructor functions located in the executable program itself are properly called. Change-Id: If364d1c710282e8117f980b09490770e7d8d1e33
2010-07-23am 6f099715: bionic: add a test for dlopen(NULL,...)David 'Digit' Turner
Merge commit '6f09971503f9bea177168d1599e925a5b22d18dd' * commit '6f09971503f9bea177168d1599e925a5b22d18dd': bionic: add a test for dlopen(NULL,...)
2010-07-21bionic: add a test for dlopen(NULL,...)David 'Digit' Turner
Change-Id: Iee8b33d1a046a71f5fd934912ee36371c1c9e8e5
2010-06-30am 83b47ccb: bionic: add tests for sem_post() and static C++ destruction on ↵David 'Digit' Turner
dlclose(). Merge commit '83b47ccbc4066ef19f5d95261d8a892567a7f0a7' * commit '83b47ccbc4066ef19f5d95261d8a892567a7f0a7': bionic: add tests for sem_post() and static C++ destruction on dlclose().
2010-06-29bionic: add tests for sem_post() and static C++ destruction on dlclose().David 'Digit' Turner
Change-Id: I95e5608240881a3880874ea0ae8a24e716186e7f
2010-05-12Add pthread_rwlock_t unit testsDavid 'Digit' Turner
Change-Id: Id40c317ed6d3bfe7d384ee1ba55a96bb869f361e
2010-03-23Add pthread mutex regression tests.David 'Digit' Turner
Change-Id: I7a0ed8928dfc61ebe8f027327a3f34e90cad04fb
2010-01-28Add clone() test.David 'Digit' Turner
This also refreshes the tests to properly compile with the latest host toolchain.
2009-05-05am ac6a88e: Add a new test to check the behaviour of getaddrinfo()David 'Digit' Turner
Merge commit 'ac6a88edbf65ff3f9e40d6e4bf1e55a002be6d6c' * commit 'ac6a88edbf65ff3f9e40d6e4bf1e55a002be6d6c': Add a new test to check the behaviour of getaddrinfo()
2009-05-05Add a new test to check the behaviour of getaddrinfo()David 'Digit' Turner
2009-03-18auto import //branches/master/...@140412The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-02-19auto import from //branches/cupcake/...@132276The Android Open Source Project
2008-12-17Code drop from //branches/cupcake/...@124589The Android Open Source Project