]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: sort modnames only, if available
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 19 Sep 2024 14:50:21 +0000 (15:50 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 22 Sep 2024 22:35:37 +0000 (17:35 -0500)
commita49a96bdf027ea465e14551a305a9a1be5a26059
tree94081e005492cf0f96ada3f848fa902e2be5b745
parentf2c7b08c3b3ec9b64de03fec06600d7f79181459
testsuite: sort modnames only, if available

In some tests we expect zero modules to be loaded. In those cases, skip
the sorting - qsort is annotated as non-null(1,2) so we shouldn't
provide null as expected/loaded modules.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/144
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/testsuite.c