• M
    tests: Produce predictable results in nsstest · a8dc3ac2
    Michal Privoznik 提交于
    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: NMichal Privoznik <mprivozn@redhat.com>
    a8dc3ac2
nsstest.c 6.0 KB