]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Produce predictable results in nsstest
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Mar 2016 13:52:49 +0000 (14:52 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Mar 2016 18:34:18 +0000 (19:34 +0100)
commita8dc3ac28acbdbb20deec0accec9d0d75aaca631
tree23ced2b6b4f792a970146dc9bc9753066387e886
parent1de354ccc5b976904a31502098c10c50b78548f2
tests: Produce predictable results in nsstest

Problem is that in the test any status file matching
tests/nssdata/*.status is loaded as it contains IP addresses that
are parsed. However, there's no order specified in which the
files are loaded. Therefore on different systems the order may be
different. This is then producing an unexpected results.
Instead of defining an order in which the files are loaded, make
the code that checks for missing IP addresses (or redundant ones)
cope with unordered list of addresses. The reasoning behind is
that the code doing the parsing is used in real NSS module where
we don't care for ordering.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/nsstest.c