[9.18] fix: test: The statschannel tests fails if one of libxml2 or json-c is configured
The statschannel
system test failed if only one of libxml2
or json-c
is
available / configured as checks were being run against the non available
statistics page.
Closes #4919 (closed)
Backport of MR !9454 (merged)