diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2025-08-12 10:26:02 -0600 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2025-08-12 10:38:25 -0600 |
| commit | d888317796190bec350aea3701b8aed3bfdad4c8 (patch) | |
| tree | e227936628f9ecc67cdf0b50ca863b020ef2b9d3 /etc | |
| parent | ec92e61f99f62e377910a543f2446e0338aa5563 (diff) | |
sockstat: fix port parsing after libxo integration
parse_ports has been broken ever since 7b35b4d, and it's a sufficiently
complicated function that it really deserves some unit tests. Fix it,
and add tests. Refactor the code a little bit to facilitate unit tests.
Chiefly, split the tested functions out of main.c into sockstat.c .
PR: 288731
Fixes: 7b35b4d ("sockstat: add libxo support")
Sponsored by: ConnectWise
PR: https://github.com/freebsd/freebsd-src/pull/1807
Reviewed by: rido
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/mtree/BSD.tests.dist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index b3b2b61da143..2c25d9386032 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -1205,6 +1205,8 @@ .. seq .. + sockstat + .. soelim .. sort |
