opnsense-src/lib/libc/tests
John Baldwin 2afeaad315 Various fixes to the load() function.
- Use getline() instead of fgetln().  This ensures the returned string
  is always null-terminated without losing the last character if the
  last line in a file doesn't have a newline.  Also, while fgetln says
  the returned buffer can be modified, that doesn't actually seem safe
  as the current implementation means you are modifying stdio's
  internal buffer.

- Remove a spurious if before an ATF_REQUIRE that was clearly supposed
  to be non-optional.

- Remove a pointless compare of 'ptr' against '\0' (really NULL) that
  duplicated the middle condition in the for().

- Once a comment is found, skip the rest of the line, not just the
  current word.

Reviewed by:	kevans
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D26278
2020-09-03 14:50:15 +00:00
..
c063 Provide O_SEARCH 2020-02-02 16:34:57 +00:00
db
gen Revert r351416 to let lib.libc.gen.getmntinfo_test.getmntinfo_test get more test 2020-07-13 18:19:02 +00:00
hash
iconv Remove 'All rights reserved' from my files 2018-05-09 20:12:59 +00:00
inet
locale
net Fix filename to avoid skipping lib/libc/net/servent test. 2019-07-15 23:41:00 +00:00
nss Fix various -Wpointer-compare warnings 2019-10-08 21:14:09 +00:00
regex regcomp: reduce size of bitmap for multibyte locales 2018-12-12 04:23:00 +00:00
resolv Various fixes to the load() function. 2020-09-03 14:50:15 +00:00
rpc
setjmp
ssp Rework check for libclang_rt to see if the needed library exists. 2018-06-27 16:56:46 +00:00
stdio Conform to Berne Convention. 2018-05-22 06:22:58 +00:00
stdlib Enable long double tests on RISC-V 2020-06-24 13:11:19 +00:00
string Avoid copying too much from the input string. 2019-07-19 23:58:30 +00:00
sys Pass a valid mode with O_CREATE to open(2). 2020-09-02 21:17:54 +00:00
termios
time
tls
tls_dso Update Makefile.depend files 2019-12-11 17:37:53 +00:00
ttyio
Makefile Connect libc/tests/time to the build, adding test cases for strptime() 2018-10-30 02:37:23 +00:00
Makefile.depend
Makefile.netbsd-tests