summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* libc: fix strtoqNatanael Copa2010-12-012-0/+90
| | | | | | | | strtoq should always return a quad_t and be an alias of strtol on 64 bit and strtoll on 32 bit. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test: ignore some more binariesBernhard Reutner-Fischer2010-11-241-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wchar: bug #1471: fix cornercase in mbrtowcBernhard Reutner-Fischer2010-11-243-2/+24
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test/math: bessel depend on XSI_MATHBernhard Reutner-Fischer2010-11-241-2/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: fix tgamma to actually do return true gamma functionDenys Vlasenko2010-10-316-7/+83
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: remove int_WRAPPER_C99 macro, add test which checks that I did not ↵Denys Vlasenko2010-10-312-1/+118
| | | | | | break it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix false positives in double testsDenys Vlasenko2010-10-312-1/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix remaining failures in test-floatDenys Vlasenko2010-10-312-1/+53
| | | | | | | | These two failures are fixed: Failure: Test: ilogb (0.0) == FP_ILOGB0 plus exceptions allowed Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix rint/scalb testcase failuresDenys Vlasenko2010-10-302-15/+45
| | | | | | | | | | | | | | | | | | | These failures no longer happen: Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test/math/*: unbreakDenys Vlasenko2010-10-3012-10/+10122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/math was not running at all, presume it has bit rotted: It was trying to run libm-test.c as if it is a binary. It was looking for libm-test-ulps (file with allowed errors in lower bits) in arch-specific dirs which do not exist in uclibc, as a result wrong file (libm-test.inc) was used instead. Test failure was not showing the error result, user had to fish it out from some .out files. I added libm-test-ulps-ARCH files from recent glibc, this filtered out a lot of false positives. For example, cosf(M_PI_6l * 4.0) ideally should be -0.5, we are getting -0.50000005047356477217, and this isn't a failure (the difference is one lowest bit of mantissa). "make check UCLIBC_ONLY=1 VERBOSE=1" still fails, but not as catastrophically as before. For the record, the failure occurs on the stage where we check 32-bit float functions, these tests fail: Failure: Test: modf (NaN, &x) == NaN Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, inf) == NaN plus invalid exception Failure: Test: scalb (-0, inf) == NaN plus invalid exception Failure: Test: scalb (1, inf) == inf Failure: Test: scalb (-1, inf) == -inf Failure: Test: scalb (inf, -inf) == NaN plus invalid exception Failure: Test: scalb (-inf, -inf) == NaN plus invalid exception Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (inf, NaN) == NaN Failure: Test: pow (1, NaN) == 1 Failure: Test: pow (1, inf) == 1 Failure: Test: pow (-1, inf) == 1 Failure: Test: pow (1, -inf) == 1 Failure: Test: pow (-1, -inf) == 1 Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libc: Add canonicalize_file_name functionCarmelo Amoroso2010-09-161-0/+75
| | | | | | | | Add canonicalize_file_name function and its related tests. Required by elfutils and coreutils (readlink). Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* test: Update gitignore to take into account new tests added.Carmelo Amoroso2010-09-161-4/+26
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* tests: Added new nptl testsSalvatore Cro2010-09-1558-1/+4877
| | | | | | | tests: Added several nptl tests from glibc 2.10.1 Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* tests: nptl tests dependencies cleanupSalvatore Cro2010-09-091-12/+8
| | | | | | | tests: some cleanings on nptl tests' dependencies. Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* testsuite: nptl/tst-basic5 depends on SUSV4_LEGACYBernhard Reutner-Fischer2010-08-171-0/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* getnet: switch to config parserBernhard Reutner-Fischer2010-08-051-0/+17
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sysconf: implement _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLNBernhard Reutner-Fischer2010-08-051-0/+2
| | | | | | perusing the config parser Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix ctime() standard compliance bugDavid A Ramos2010-07-271-0/+44
| | | | | | | | | | | | | | | | | | | | | fixes issue2209: ctime() was updated in 0.9.31 to call localtime_r() instead of localtime() to avoid using a static buffer. Unfortunately, this change replaces the static buffer (which is zeroed out on initialization) with an uninitialized local buffer. In the common case, this has no effect. However, with a sufficiently large time_t value, the value returned differs from that returned by asctime(localtime(t)), and thus violates the ANSI/ISO standard. An example input is (on a 64-bit machine): time_t t = 0x7ffffffffff6c600; Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test/nptl: move eintr.c to where it belongsBernhard Reutner-Fischer2010-06-251-0/+89
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test: silence shadow warningBernhard Reutner-Fischer2010-06-251-3/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* use uniform form of C99 keywordsBernhard Reutner-Fischer2010-06-243-4/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: disable some tests for !LFSBernhard Reutner-Fischer2010-06-114-3/+11
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: .gitignore symlinkBernhard Reutner-Fischer2010-06-101-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* testsuite: do not run inet tests if !ipv4 && !ipv6Bernhard Reutner-Fischer2010-06-101-0/+7
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* lgamma: fix sign handlingBernhard Reutner-Fischer2010-06-103-1/+21
| | | | | | | add testcase from http://sourceware.org/bugzilla/show_bug.cgi?id=4407 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* powerpc: Add TLS and NPTL supportKhem Raj2010-05-095-5/+5
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Merge commit 'origin/master' into nptlAustin Foxley2010-04-14122-0/+1384
|\ | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test: add API testBernhard Reutner-Fischer2010-04-13122-0/+1384
| | | | | | | | | | | | | | | | | | part1; Needs improvement: Think about a sensible way to map feature sets to the mandated syms. Our LEGACY stuff maps to OB, OBXSI for example. A "normal" config should satisfy the BASE (i.e. $foo.SUSv4.syms) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2010-04-063-1314/+7
|\| | | | | | | | | | | | | | | Conflicts: libc/misc/utmp/utent.c libc/sysdeps/linux/i386/bits/syscalls.h Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * getconf: move to utils/Bernhard Reutner-Fischer2010-04-063-1314/+7
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2010-04-021-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.in extra/Configs/Config.in libc/sysdeps/linux/common/bits/kernel-features.h libc/sysdeps/linux/common/poll.c libc/sysdeps/linux/common/sysdep.h libc/sysdeps/linux/sh/sysdep.h Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * add MULTILIB_DIR: Path component for libdirsBernhard Reutner-Fischer2010-03-121-1/+1
| | | | | | | | | | | | defaults to "lib". Other prominent values include "lib32" or "lib64" Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | nptl_test: sysdep headers re-factoringCarmelo Amoroso2010-02-094-2/+11
| | | | | | | | | | | | Update nptl and tls Makefiles according to new sysdep headers structure Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Merge commit 'origin/master' into nptlAustin Foxley2010-02-052-2/+8
|\| | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * libm: enable log2f and exp2fAurelien Jacobs2010-02-041-2/+2
| | | | | | | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * add gethostid() testcaseBernhard Reutner-Fischer2010-02-031-0/+6
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * test/math: put scalbf test under susv3 legacy defineAustin Foxley2009-12-272-1/+5
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test_dlopen: Remove extra -lpthread from LD_FLAGS for dltest{2}Filippo Arcidiacono2009-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | dltest and dltest2 do not refer any symbols implemented in pthread library, so do not explicitly link them with pthread. It is required only for the shared objects that are loaded via dlopen by those tests. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * test/.gitignore: Ignore a few more test binariesAustin Foxley2009-11-291-0/+3
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/dlopen: fix build for libtest.soAustin Foxley2009-11-291-0/+1
| | | | | | | | | | | | needs -lpthread, recent addition of -z,defs and -z,now exposed this Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/dlopen: Match the function name that libtest actually setsAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/pthread: fix build of cancellation-points testAustin Foxley2009-11-291-2/+2
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * test/stat: fix compiling the memcmp-stat test when __USE_MISC is definedAustin Foxley2009-11-291-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test: fix static build of nptl and tls testsAustin Foxley2010-01-232-14/+25
| | | | | | | | | | | | | | also add needed -lpthread lines to timer_* tests, since the implementation uses pthread functions Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | test/math: put scalbf test under susv3 legacy defineAustin Foxley2010-01-212-1/+5
| | | | | | | | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> (cherry picked from commit e949d522a31db675889bc87b6023e7edb6b30caa) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | fix compiling test cases in static modeAustin Foxley2009-12-161-2/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-161-12/+12
| | | | | | | | | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | test_dlopen: Remove extra -lpthread from LD_FLAGS for dltest{2}Filippo Arcidiacono2009-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | dltest and dltest2 do not refer any symbols implemented in pthread library, so do not explicitly link them with pthread. It is required only for the shared objects that are loaded via dlopen by those tests. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | ldso_tls: Refetch dtv from memory if THREAD_DTV has changedCarmelo Amoroso2009-12-033-1/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _dl_update_slotinfo might change THREAD_DTV () (if it needs to reallocate it), but the caller (__tls_get_addr) doesn't refetch dtv from memory, it uses its cached copy. This may crash (if dtv[GET_ADDR_MODULE] is off the cliff, or might read uninitialized memory and return it. Typically dtv[GET_ADDR_MODULE].pointer.val is NULL and so __tls_get_addr returns NULL + offset_within_PT_TLS. The next time __tls_get_addr is called for the same library it will return correct address as _dl_update_slotinfo won't need to be called. Signed-off-by: Jakub Jelinek <jakub@redhat.com> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | test_tls: Add two new tests for tls tst-tls{16,17} taken from glibcCarmelo Amoroso2009-12-037-2/+161
| | | | | | | | | | Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>