opnsense-src/lib/libc/tests
John Baldwin 848ca53d3a inet_net_test: Compare pointers against nullptr
GCC does not like passing NULL (__null) to std::ostringstream::operator<<
inside of ATF_REQUIRE_EQ:

lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_ntop_invalid::body() const':
lib/libc/tests/net/inet_net_test.cc:306:9: error: passing NULL to non-pointer argument 1 of 'std::__1::basic_ostream<_CharT, _Traits>& std::__1::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::__1::char_traits<char>]' [-Werror=conversion-null]
  306 |         ATF_REQUIRE_EQ(ret, NULL);
      |         ^~~~~~~~~~~~~~
In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/sstream:317,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++/macros.hpp:29,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++.hpp:29,
                 from lib/libc/tests/net/inet_net_test.cc:33:
/usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__ostream/basic_ostream.h:338:81: note:   declared here
  338 | basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(long __n) {
      |                                                                            ~~~~~^~~
...

Fixes:		8f4a0d2f7b96 ("libc: Import OpenBSD's inet_net_{ntop,pton}")
(cherry picked from commit aa358ce3ca8e1fcfb305025fd00beb2a119c7c77)
2025-10-26 02:30:05 +00:00
..
c063 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
db dbm_nextkey: Always return an error if we've reached the end of the database 2025-07-31 17:27:24 +02:00
gen realpath: Report correct path on failure 2025-10-20 16:11:21 +00:00
hash Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
iconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
inet Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
locale libc: locale: fix EUC shift check 2025-04-20 13:29:45 -05:00
net inet_net_test: Compare pointers against nullptr 2025-10-26 02:30:05 +00:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-01 13:23:47 -07:00
regex Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
resolv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
secure include: ssp: fortify <signal.h> 2025-06-11 17:16:22 -06:00
setjmp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ssp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
stdio stdio: Fix bug in integer-parsing FSM 2025-08-09 00:46:03 +02:00
stdlib libc: Drop incorrect qsort optimization 2025-08-15 09:23:03 +02:00
stdtime tzcode: Test escape from TZDIR 2025-10-02 08:19:24 +00:00
string libc: Have memcmp test what the standard requires 2025-09-16 13:34:32 -04:00
sys libc/powerpc64: Fix swapcontext(3) 2025-07-13 14:00:56 -04:00
termios Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
time Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tls packages: Remove the tests-dev package 2025-09-19 02:17:29 +01:00
tls_dso packages: Remove the tests-dev package 2025-09-19 02:17:29 +01:00
ttyio Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-09 13:38:22 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00