[Tests] do not use Frama_C_foo directly
Instead, include the proper libc headers, with the specifications. Otherwise, in the next commits(s), we won't have preconditions to evaluate, and the tests will be come unsound Changes: - share/libc/stdlib.c: previous version of calloc in stdlib. used Frama_C_memset, which is idiotic since - for non-free we now *have* a builtin for calloc - stdlib.c is meant for people with non-free builtins - same thing for tests/libs/string_c.c: the builtin was used - nonfree/imprecise.c: sizeof(v3), where v3 is an abstract struct, is evaluated slightly less precisely now. We don't care as long as it does not crash. - nonfree/strchr.c: the test is buggy, the behavior was undefined
Showing
- share/libc/__fc_builtin.h 0 additions, 9 deletionsshare/libc/__fc_builtin.h
- share/libc/stdlib.c 2 additions, 6 deletionsshare/libc/stdlib.c
- tests/libc/oracle/fc_libc.0.res.oracle 36 additions, 37 deletionstests/libc/oracle/fc_libc.0.res.oracle
- tests/libc/oracle/fc_libc.1.res.oracle 130 additions, 151 deletionstests/libc/oracle/fc_libc.1.res.oracle
- tests/libc/oracle/stdlib_c.2.res.oracle 43 additions, 37 deletionstests/libc/oracle/stdlib_c.2.res.oracle
- tests/libc/oracle/string_c.res.oracle 51 additions, 6 deletionstests/libc/oracle/string_c.res.oracle
- tests/libc/string_c.c 1 addition, 1 deletiontests/libc/string_c.c
- tests/libc/string_c_strchr.c 1 addition, 1 deletiontests/libc/string_c_strchr.c
- tests/non-free/alloc_weak.c 1 addition, 1 deletiontests/non-free/alloc_weak.c
- tests/non-free/fam.c 3 additions, 1 deletiontests/non-free/fam.c
- tests/non-free/free.c 46 additions, 0 deletionstests/non-free/free.c
- tests/non-free/gcc_zero_length_array.c 1 addition, 1 deletiontests/non-free/gcc_zero_length_array.c
- tests/non-free/imprecise-malloc-free.c 27 additions, 0 deletionstests/non-free/imprecise-malloc-free.c
- tests/non-free/imprecise.c 5 additions, 5 deletionstests/non-free/imprecise.c
- tests/non-free/memchr.c 5 additions, 5 deletionstests/non-free/memchr.c
- tests/non-free/memcpy.c 35 additions, 35 deletionstests/non-free/memcpy.c
- tests/non-free/memcpy2.c 5 additions, 5 deletionstests/non-free/memcpy2.c
- tests/non-free/memcpy_invalid.c 4 additions, 4 deletionstests/non-free/memcpy_invalid.c
- tests/non-free/memset.c 73 additions, 0 deletionstests/non-free/memset.c
- tests/non-free/oracle/fam.res.oracle 9 additions, 11 deletionstests/non-free/oracle/fam.res.oracle
Loading
Please register or sign in to comment