summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cris/c
Commit message (Collapse)AuthorAgeFilesLines
* sim: testsuite: allow tests to declare expected exit statusMike Frysinger2021-01-151-1/+6
| | | | | | | | | | | | | Some tests want to verify they can control the exit status, and allowing any non-zero value would allow tests to silently fail: if it crashed & exited 1, or forced all non-zero to 1, then we wouldn't be able to differentiate with a test exiting with a status like 47. Extend the test harness to allow tests to declare their expected exit status that would be defined as a "pass". This requires a small tweak to the sim_run API to return the status directly, but that shouldn't be a big deal as it's only used by sim code.
* sim: replace rindex with strrchrMike Frysinger2021-01-091-2/+2
|
* sim: cris: disable test that crashes the linkerMike Frysinger2021-01-071-1/+5
| | | | | | | PR ld/13900 Linking this test crashes the linker, so disable it. The crash was reported about 9 years ago but haven't made progress, so lets avoid the failures in test runs.
* sim: cris: use -sim with C tests for cris-elf targetsMike Frysinger2021-01-071-0/+4
| | | | | | | | | | | | | Building the C tests with a cris-elf toolchain (gcc-10.2 & newlib-4.1.0) currently fail due to warnings it emits: cris-elf-ld: libc.a(lib_a-closer.o): in function `_close_r': newlib/libc/reent/closer.c:47: warning: _close is not implemented and will always fail This is because the default target for cris-elf is bare metal, not the simulator. For that, we need -sim. So add it for elf targets. We don't add it for all targets as the simulator (and testsuite) run both libgloss programs as well as Linux userspace programs.
* sim: cris: fix C tests with newer toolchainsMike Frysinger2021-01-0710-2/+13
| | | | | | | | | | Make sure we include unistd.h for getpid prototypes to fix build warnings/errors with newer compilers & C libraries. Doing that for close in openpf highlights these were using the wrong function -- need to use fclose on FILE*, not close. These tests pass again with a cris-elf toolchain.
* Update copyright year range in all GDB filesJoel Brobecker2021-01-011-1/+1
| | | | | | | | | This commits the result of running gdb/copyright.py as per our Start of New Year procedure... gdb/ChangeLog Update copyright year range in copyright header of all GDB files.
* Update copyright year range in all GDB files.Joel Brobecker2020-01-011-1/+1
| | | | | | gdb/ChangeLog: Update copyright year range in all GDB files.
* Update copyright year range in all GDB files.Joel Brobecker2019-01-011-1/+1
| | | | | | | | | | | | | | | | This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files.
* Update copyright year range in all GDB filesJoel Brobecker2018-01-021-1/+1
| | | | | | gdb/ChangeLog: Update copyright year range in all GDB files
* update copyright year range in GDB filesJoel Brobecker2017-01-011-1/+1
| | | | | | | | | This applies the second part of GDB's End of Year Procedure, which updates the copyright year range in all of GDB's files. gdb/ChangeLog: Update copyright year range in all GDB files.
* GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker2016-01-011-1/+1
| | | | | | gdb/ChangeLog: Update year range in copyright notice of all files.
* Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker2015-01-011-1/+1
| | | | | | gdb/ChangeLog: Update year range in copyright notice of all files.
* Update Copyright year range in all files maintained by GDB.Joel Brobecker2014-01-011-1/+1
|
* Update years in copyright notice for the GDB files.Joel Brobecker2013-01-011-1/+1
| | | | | | | Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
* sim: cris: update testsuite output after strsignal changeMike Frysinger2012-03-2424-24/+24
|
* Copyright year update in most files of the GDB Project.Joel Brobecker2012-01-041-2/+1
| | | | | | gdb/ChangeLog: Copyright year update in most files of the GDB Project.
* run copyright.sh for 2011.Joel Brobecker2011-01-011-1/+2
|
* * sim/cris/c/seek3.c, sim/cris/c/seek4.c: New tests.Hans-Peter Nilsson2010-10-062-0/+93
|
* Update copyright notices to add year 2010.Joel Brobecker2010-01-011-1/+1
|
* Update the copyright notice of some of the files I missedJoel Brobecker2009-01-141-1/+1
| | | | in the previous copyright update.
* * sim/cris/c/mmap5.c, sim/cris/c/mmap6.c, sim/cris/c/mmap7.c,Hans-Peter Nilsson2009-01-065-0/+131
| | | | sim/cris/c/mmap8.c, sim/cris/c/hellodyn3.c: New tests.
* * sim/cris/c/settls1.c: New test.Hans-Peter Nilsson2009-01-031-0/+49
|
* * sim/cris/c/exitg1.c, sim/cris/c/exitg2.c: New tests.Hans-Peter Nilsson2009-01-032-0/+27
|
* * sim/cris/c/uname1.c: New test.Hans-Peter Nilsson2009-01-031-0/+21
|
* * sim/cris/c/mmap1.c (MMAP_FLAGS): Default-define toHans-Peter Nilsson2009-01-032-1/+10
| | | | | MAP_PRIVATE and use this macro in the mmap call. * sim/cris/c/mmap4.c: New test.
* * sim/cris/c/access1.c: New test.Hans-Peter Nilsson2009-01-031-0/+16
|
* * sim/cris/asm/badarch1.ms, sim/cris/c/badldso1.c,Hans-Peter Nilsson2008-12-309-0/+131
| | | | | | | | | | sim/cris/c/badldso2.c, sim/cris/c/badldso3.c, sim/cris/c/helloaout.c, sim/cris/c/hellodyn.c, sim/cris/c/hellodyn2.c, sim/cris/c/writev1.c, sim/cris/c/writev2.c: New tests. * sim/cris/c/c.exp: If compiler links libc.so when attempting to link dynamically, create symlink named "lib" to the directory where it is found. Handle new test-case option "dynamic".
* Updated copyright notices for most files.Daniel Jacobowitz2008-01-011-1/+1
|
* 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>Daniel Jacobowitz2007-10-112-4/+41
| | | | | | | | | | | | | * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions. * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * sim/cris/c/freopen2.c: Added testcase.
* Switch the license of all files explicitly copyright the FSFJoel Brobecker2007-08-241-3/+2
| | | | to GPLv3.
* Copyright updates for 2007.Daniel Jacobowitz2007-01-091-1/+1
|
* * sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,Hans-Peter Nilsson2006-10-0228-16/+198
| | | | | | | | | | | | | | | | | | | sim/cris/c/rtsigprocmask1.c, sim/cris/c/rtsigsuspend1.c, sim/cris/c/sig7.c, sim/cris/c/sigreturn1.c, sim/cris/c/sigreturn2.c, sim/cris/c/syscall1.c, sim/cris/c/syscall2.c, sim/cris/c/sysctl2.c, sim/cris/c/fcntl1.c, sim/cris/c/readlink2.c: Add code to print ENOSYS if syscall being tested returns ENOSYS. Add early exit where needed. Change any existing code to print "xyzzy", not "pass". * sim/cris/asm/option3.ms, sim/cris/asm/option4.ms, sim/cris/c/clone6.c, sim/cris/c/fcntl2.c, sim/cris/c/mprotect2.c, sim/cris/c/readlink11.c, sim/cris/c/rtsigprocmask2.c, sim/cris/c/rtsigsuspend2.c, sim/cris/c/sig13.c, sim/cris/c/sigreturn3.c, sim/cris/c/sigreturn4.c, sim/cris/c/syscall3.c, sim/cris/c/syscall4.c, sim/cris/c/syscall5.c, sim/cris/c/syscall6.c, sim/cris/c/syscall7.c, sim/cris/c/syscall8.c, sim/cris/c/sysctl3.c: New tests.
* * sim/cris/c/pipe2.c: Adjust expected output.Hans-Peter Nilsson2006-09-301-8/+27
| | | | | | | | (process): Don't write as much to the pipe as to trig the inordinate-amount test in the sim pipe machinery. Correct test of write return-value; check only that pipemax bytes were successfully written. For error-case, emit strerror as well. (main): Add a second read.
* * sim/cris/c/time2.c: New test.Hans-Peter Nilsson2006-02-231-0/+18
|
* * sim/cris: New directory with C and assembly tests for the CRISHans-Peter Nilsson2005-11-2198-0/+3403
simulator.