summaryrefslogtreecommitdiff
path: root/tests/lib/libc/stdio/t_fopen.c
AgeCommit message (Collapse)Author
2020-02-21Avoid undefined behavior in is_module_present()kamil
t_fopen.c:339:18, member access within misaligned address 0x7f7ff7ebd004 for type 'modstat_t' (aka 'struct modstat') which requires 8 byte alignment
2019-07-16PR misc/54382: whenever open(2) is called with O_CREAT, make sure tomartin
pass an open mode argument.
2019-02-05Add 2 new tests in t_fopenkamil
Added: - fopen_nullptr (without COMPAT_10) - fopen_nullptr_compat10 (with COMPAT_10) PR kern/53948 Reviewed by <mgorny>
2017-11-06In the fopen_regular and fopen_symlink tests, when (that is, if) akre
failure occurs, distinguish in the failure message the cases where the open succeeded (and should not have), and where it failed, but not for the expected reason (the "wrong errno" case not tested, would require manufacturing a broken kernel...). Add O_NOFOLLOW ('l' mode modifier) tests to the fopen_mode test case (tests that are intended to open the file) and also add a few missing commas which were causing a few of the sub-tests to be skipped, and others to be not quite testing exactly what was intended.
2017-11-06add a symlink testchristos
2011-09-14A test case may not assume opening /dev/tty does something sensible.martin
2011-09-12Add one more case. Also remove a double fclose(3) and do notjruoho
steal stderr(3) as atf(7) may use it in case of failures.
2011-09-11Few unit tests for the fopen(3) family.jruoho