summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* make test-skeleton C89 compliantBernhard Reutner-Fischer2009-12-191-4/+7
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* try to probe if stat.t_mtim.tv_nsec is availableBernhard Reutner-Fischer2009-12-192-20/+47
| | | | | | Do not treat tv_nsec mismatches as errors on filesystems without support for it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* futimens: add functionBernhard Reutner-Fischer2009-12-192-0/+355
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test_librt: Fix shmtest.c test caseCarmelo Amoroso2009-10-121-3/+5
| | | | | | | | | | | | | | | | | | Fix wrong use of sizeof (array) to retrieve the number of elements; it was causing accessing beyond the array's boundaries. Below the output of the testcase showing an attempt to read beyond the array (actually 11 elements in size). root@amorosoc:/home/carmelo# ./shmtest Compare memory error : Offset 11, local 4262624, shm 224 Compare memory error : Offset 12, local 693493828, shm 68 Compare memory error : Offset 13, local 693489168, shm 16 Compare memory error : Offset 14, local 693826444, shm 20 ..... Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test_librt: Fix build system for shm_open/unlink testsCarmelo Amoroso2009-10-122-2/+4
| | | | | | | Fix and align build system of librt tests to the test suite. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test/librt: make it build againDenys Vlasenko2009-10-121-0/+3
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add testcases for shm_{open,unlink}Bernhard Reutner-Fischer2009-10-122-0/+108
| | | | | Reported-by: Mikael Lund Jepsen <mlj@iccc.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Added string.h header for strerr prototype.Carmelo Amoroso2009-10-121-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* This patch fixes locale-mbwc test failures when __UCLIBC_HAS_LOCALE__ is ↵Carmelo Amoroso2009-10-121-0/+24
| | | | | | | disabled and __UCLIBC_HAS_WCHAR__ is enabled. The only locale available when __UCLIBC_HAS_LOCALE__ is disabled is the C locale, the others locale are skipped. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* - enable math tests (plus assorted related fixups)Bernhard Reutner-Fischer2009-02-245-26/+182
|
* - remove dependency on GNU error()Bernhard Reutner-Fischer2009-02-242-21/+43
|
* - remove dependency on GNU error functionalityBernhard Reutner-Fischer2009-02-231-8/+10
|
* - disable libcrypt tests if we have no libcryptBernhard Reutner-Fischer2009-02-231-0/+6
|
* Fix wcswidth function when LOCALE support is disabledCarmelo Amoroso2008-12-021-1/+1
| | | | | | | | | | while keeping WCHAR support enabled. This solves two testcases: tst_wcwidth and tst_wcswidth. Fix dat_iswctype.c fiinput file: character 0x80 is not a control character: it fixes tst_iswctype test. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Use C implementation of strncmp.Khem Raj2008-10-251-0/+1
| | | | Add a new strncmp testcase.
* - add and use EXTRA_DIRS to wipe the test/locale/C directoryBernhard Reutner-Fischer2008-10-104-1/+4
|
* - Include stdio.h for the perror prototype, use constants from stdlib.h,Bernhard Reutner-Fischer2008-10-101-3/+5
| | | | tidy up old-style function definition.
* - fix test. Tests are normal userspace and are _not_ part of the libc itselfBernhard Reutner-Fischer2008-10-091-1/+1
| | | | Thanks to Tobias Poschwatta for pointing out this error.
* Fix scandir function to reset the errno when the Carmelo Amoroso2008-10-061-0/+21
| | | | | | | | | | | selector returns zero(no entries) modifying the errno. The attached test case implements a dummy filter that returns alway no entries, but change the errno. scandir is not expected to fail, just returning 0 entries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer2008-10-031-5/+5
|
* Fix bad commit 23574 for io redirecting when running the test suiteHans-Christian Egtvedt2008-10-021-1/+1
| | | | | | | This patch fixes the previous r23574 and uses a correct syntax for redirecting. ./foo > bar.out 2>&1
* Use more generic redirecting of output in the test suiteHans-Christian Egtvedt2008-10-021-1/+1
| | | | | | | | | This patch replaces the "&> file" with "> file 2>> file". The latter is compatible with Busybox ash shell, which makes it easier to run the test suite on target. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* - revert inappropriate part of r23478Bernhard Reutner-Fischer2008-09-261-4/+7
|
* Add globally __stringify macro in libc-symbols.h.Carmelo Amoroso2008-09-251-7/+4
| | | | | | Remove all other duplicated definitions. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-271-1/+0
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-2315-33/+33
|
* - remove the error counterBernhard Reutner-Fischer2008-07-113-12/+3
|
* - add error-counter, do not immediately exit if a testcase fails but printBernhard Reutner-Fischer2008-07-113-2/+11
| | | | the overall error-counter at the end and exit accordingly.
* - do not test pthread if threads are not availableBernhard Reutner-Fischer2008-07-111-0/+3
|
* - don't test libcrypt stubsBernhard Reutner-Fischer2008-07-111-0/+3
|
* - do not run tests that are not availableBernhard Reutner-Fischer2008-07-111-0/+6
|
* wow. So why does test/ keep it's own copy of CFLAGS guessing etc?Bernhard Reutner-Fischer2008-07-111-1/+1
|
* Removed wrong preprocessed filesCarmelo Amoroso2008-07-102-16675/+0
|
* Added missing tests for locale with multibyte encodingCarmelo Amoroso2008-07-10110-0/+29302
|
* Added several tests for locale support (8 bit and multibyte UTF-8)Carmelo Amoroso2008-07-0932-0/+4648
| | | | | | | | | | | | Basically all tests have been taken from glibc. For testing multibyte encoding EUC_JP parts have been commented out and added new section for UTF-8 that is the only multibyte codeset currently supported on uCLibc. Some tests are still failing due to unsupported/missing features, other have been fixed. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix the test build system by installing headers on a local folderCarmelo Amoroso2008-07-082-2/+11
| | | | | | | instead of using internal headers. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix makefile target to run test when there are some shell script.Carmelo Amoroso2008-07-021-3/+1
| | | | | | | | | | | | SImply do not include SHEL_TESTS among RUNTIME_TESTS, because shell script have a their own rule to be excuted. The runtime evaluation by using the $(shell ...) command doesn't work due to immediate expansion of shell function. Currently only nptl tests have shell script, so this problem have been never discovered before. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* add test case for argv[0] == nullMike Frysinger2008-06-271-0/+13
|
* Fix some compiler warningsCarmelo Amoroso2008-06-111-1/+1
|
* Document the reason why ether tests in testsuite may fail.Denis Vlasenko2008-06-062-0/+9
| | | | | No code changes.
* Fix spurious testsuite failureDenis Vlasenko2008-06-061-0/+5
|
* Remove automatically generated header when doing make cleanCarmelo Amoroso2008-05-201-1/+1
|
* Convert to UNIX formatCarmelo Amoroso2008-05-161-25/+25
|
* Do not check retbuf if realpath returns NULLCarmelo Amoroso2008-05-131-2/+1
|
* test-canon: stop checking realpath buffer in case realpathDenis Vlasenko2008-05-081-17/+15
| | | | | | returns NULL (the buffer contents is undefined); also check errno more thoroughly (bugs were seen slipping through)
* Fix rpc test MakefileCarmelo Amoroso2008-04-251-0/+4
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix some sh4 specific entriesCarmelo Amoroso2008-04-251-0/+5
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-241-1/+1
|
* Fix file permissionsCarmelo Amoroso2008-02-282-0/+0
|
* Added support for ether_line, ether_ntohost and ether_hostton.Carmelo Amoroso2008-02-282-0/+73
| | | | | | | Added related test cases. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Hacked-by: Carmelo Amoroso <carmelo.amoroso@st.com>