summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-03-14misc/tst-syscall6: fix build with musl and older kenrel headersBaruch Siach
The RWF_DSYNC and RWF_HIPRI macros were introduced in kernel version 4.6 with the preadv2/pwritev2 system calls. musl libc provides its own syscall definitions, even when the kernel headers are older. This leads to the following build failure: tst-syscall6.c: In function 'main': tst-syscall6.c:32:48: error: 'RWF_DSYNC' undeclared (first use in this function) nio = syscall(SYS_pwritev2, fd, iov, 2, 0, 0, RWF_DSYNC); ^~~~~~~~~ tst-syscall6.c:32:48: note: each undeclared identifier is reported only once for each function it appears in tst-syscall6.c:42:58: error: 'RWF_HIPRI' undeclared (first use in this function) nio = syscall(SYS_preadv2, fd, iov, 1, strlen(str0), 0, RWF_HIPRI); ^~~~~~~~~ Make the code depend also on RWF_HIPRI to fix this failure. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
2018-01-20add getcwd test from glibcWaldemar Brodkorb
2017-12-27add tls-macros for m68kWaldemar Brodkorb
2017-12-22fix compile errors with alphaWaldemar Brodkorb
2017-12-17rename librt test, add tst-posix_spawnWaldemar Brodkorb
2017-12-16tst-syscall*: Add tests for syscall() with varargsStafford Horne
Add tests in preparation for genericizing some of the architecture syscall() implementations. This was noticed when testing OR1K and found it had a broken syscall implementation. These tests try to cover the libc syscall() lqyer which has the purpose of passing the syscall number and arguments to the kernel. The actual kernel syscalls chosen have been selected for ease of testing. Signed-off-by: Stafford Horne <shorne@gmail.com>
2017-12-16don't skip the testWaldemar Brodkorb
2017-12-10Fix subtle race in tst-cancel2 / tst-cancelx2Vineet Gupta
When ran on ARC, these tests would ocassionally fail | [ARCLinux]# for i in 1 2 3 4 5 ; do ./tst-cancel2; echo $?; done | write succeeded | result is wrong: expected 0xffffffff, got 0x1 | 1 <-- fail | 0 <-- pass | 0 <--- pass | 0 <-- pass | write succeeded | result is wrong: expected 0xffffffff, got 0x1 | 1 <-- fail Same test (which originated form glibc) doesn't fail in glibc builds. Turns out there's a subtle race in uclibc version The test creates a new thread, makes it do a looong write call, and parent then cancels the thread, expecting it to unwind out of write call cleanly. However the write (even for 10k bytes) could finish before parent gets a chance to resume and/or cancel it, causing the occasional failure. Fix this subtelty by making it write not just once but forever. Cc: Cupertino Miranda <cmiranda@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
2017-12-05Revert "or1k: disable some tests to complete test runs in qemu"Waldemar Brodkorb
This reverts commit 1502f8269bb8e58f8b29fb69af3a3b8c7b2532de.
2017-11-22tst-statfs: print f_frsize if availableEugene Rudoy
Follow-up of 68de9946e914d8c30dcc6667a059ea59e5b74cac Signed-off-by: Eugene Rudoy <gene.devel@gmail.com>
2017-11-05arc: disable deadlocking testWaldemar Brodkorb
2017-10-26or1k: disable some tests to complete test runs in qemuWaldemar Brodkorb
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2017-06-28sh: disable tests, stallingWaldemar Brodkorb
2017-05-12nptl: add new testcase for pthread_getcpuclockid()Waldemar Brodkorb
2017-05-12disable for glibcWaldemar Brodkorb
2017-01-28cleanup a little, disable a test for or1kWaldemar Brodkorb
2017-01-15add preadv/pwritev testWaldemar Brodkorb
2016-12-30add getnameinfo tests from GNU libcWaldemar Brodkorb
2016-12-24obstack removed, glibc compat is goneWaldemar Brodkorb
2016-12-18add iconv tests from glibc, enable one for uClibc-ng new libiconv, skip the ↵Waldemar Brodkorb
other
2016-12-18add missing include so that tests are not skippedWaldemar Brodkorb
2016-12-10fix compile error with glibc toolchainsWaldemar Brodkorb
2016-12-10fix compile error with glibc toolchainsWaldemar Brodkorb
2016-12-08disable xlocale testsWaldemar Brodkorb
2016-11-26we have to disable tst-tls2 for microblaze, qemu crashes otherwiseWaldemar Brodkorb
2016-11-26recognize big endian superh as shWaldemar Brodkorb
2016-11-22sh: disable some tests, we need to investigate later, tst-cond1 deadlocks on ↵Waldemar Brodkorb
glibc, too
2016-11-21use TARGET_ARCH everywhereWaldemar Brodkorb
Disable some test for metag to allow runtime testing again. Rename the big math meta-data files and do not install them. Cris and Metag can be runtime tested again.
2016-11-07fix math tests compileWaldemar Brodkorb
2016-11-07some tests need to be compiled with -std=c99Waldemar Brodkorb
2016-11-06allow to compile and run on musl based systemsWaldemar Brodkorb
This is a first shot, more improvements required to allow to run more tests.
2016-11-04dlopen: tests using threads, disable for NO_THREADSWaldemar Brodkorb
2016-11-04already defined, quieten gcc warningWaldemar Brodkorb
2016-11-03add option to disable wide-char testsWaldemar Brodkorb
2016-11-03math: disable bessel function check for uClibc-ngWaldemar Brodkorb
2016-11-03math: remove od ULPS, must be regeneratedWaldemar Brodkorb
2016-11-03argp: be sure uClibc-ng feature is availableWaldemar Brodkorb
2016-11-03math: sync with GNU libcWaldemar Brodkorb
The format of the ULPS files have changed, non-glibc architecture files needs to be updated later. Add all math tests from latest GNU libc and allow to compile and run them on uClibc-ng and GNU libc systems.
2016-11-03add microblaze handlingWaldemar Brodkorb
2016-11-03shelltests: removeWaldemar Brodkorb
2016-11-03tls: add microblaze macrosWaldemar Brodkorb
2016-10-30disable nptl/tls for linuxthreads targetsWaldemar Brodkorb
2016-10-29allow to disable threads and dynamic linking support testsWaldemar Brodkorb
2016-10-28tst-valloc: enable test, allow to be skippedWaldemar Brodkorb
2016-10-28allow to skip tests, if uClibc-ng feature is disabledWaldemar Brodkorb
2016-10-28rework most tests to work as standalone packageWaldemar Brodkorb
2016-10-24add uClibc-ng test directoryWaldemar Brodkorb