qemu/tests/cris
Stefan Weil 2917dce477 tests/cris: Fix some errors and potential crashes
These errors were reported by cppcheck:

tests/cris/check_openpf1.c:30: error:
Mismatching allocation and deallocation: f

tests/cris/check_openpf2.c:13: error:
Mismatching allocation and deallocation: f

tests/cris/check_stat3.c:16: error:
Buffer overrun possible for long cmd-line args

tests/cris/check_stat4.c:18: error:
Buffer overrun possible for long cmd-line args

The first two are obvious coding errors (fopen needs fclose, not close).

The last two may seem less important (nobody will start test code
with an argument of more than 1022 characters which raises a buffer
overrun). Fixing them nevertheless helps with static code checks
like those done by cppcheck.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2011-04-03 21:58:38 +02:00
..
.gdbinit
check_abs.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_addc.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_addcm.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_addi.s
check_addiv32.s
check_addm.s
check_addo.c
check_addoq.c
check_addq.s
check_addr.s
check_addxc.s
check_addxm.s
check_addxr.s
check_andc.s
check_andm.s
check_andq.s
check_andr.s
check_asr.s
check_ba.s
check_bas.s
check_bcc.s
check_bound.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_boundc.s
check_boundr.s
check_btst.s
check_clearfv32.s
check_clrjmp1.s
check_cmp-2.s
check_cmpc.s
check_cmpm.s
check_cmpq.s
check_cmpr.s
check_cmpxc.s
check_cmpxm.s
check_dstep.s
check_ftag.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_gcctorture_pr28634-1.c
check_gcctorture_pr28634.c
check_glibc_kernelversion.c
check_hello.c
check_int64.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_jsr.s
check_lapc.s
check_lsl.s
check_lsr.s
check_lz.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_mapbrk.c
check_mcp.s
check_mmap1.c
check_mmap2.c
check_mmap3.c
check_movdelsr1.s
check_movecr.s
check_movei.s
check_movemr.s
check_movemrv32.s
check_moveq.c
check_mover.s
check_moverm.s
check_movmp.s
check_movpmv32.s
check_movpr.s
check_movprv32.s
check_movscr.s
check_movsm.s
check_movsr.s
check_movucr.s
check_movum.s
check_movur.s
check_mulv32.s
check_mulx.s
check_neg.s
check_not.s
check_openpf1.c tests/cris: Fix some errors and potential crashes 2011-04-03 21:58:38 +02:00
check_openpf2.c tests/cris: Fix some errors and potential crashes 2011-04-03 21:58:38 +02:00
check_openpf3.c
check_openpf4.c
check_openpf5.c
check_orc.s
check_orm.s
check_orq.s
check_orr.s
check_ret.s
check_scc.s
check_settls1.c cris: Correct settls1 testcase. 2010-07-29 17:15:28 +02:00
check_sigalrm.c
check_stat1.c
check_stat2.c
check_stat3.c tests/cris: Fix some errors and potential crashes 2011-04-03 21:58:38 +02:00
check_stat4.c tests/cris: Fix some errors and potential crashes 2011-04-03 21:58:38 +02:00
check_subc.s
check_subm.s
check_subq.s
check_subr.s
check_swap.c Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
check_time1.c
check_time2.c
check_xarith.s
crisutils.h Replace 'extern inline' with 'static inline' 2011-01-17 20:26:30 +00:00
crt.s
Makefile
README
sys.c
sys.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00
testutils.inc

Test-suite for the cris port. Heavily based on the test-suite for the CRIS port of sim by Hans-Peter Nilsson.