]> git.puffer.fish Git - mirror/frr.git/commit
tests: make hash collision test collide harder 12062/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 6 Oct 2022 13:27:08 +0000 (15:27 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 6 Oct 2022 13:28:26 +0000 (15:28 +0200)
commit27a6fc42219874a8530f5dd5d44516743ad27ff0
tree0bdba4470b6074653972062b5809de7a1c22c951
parent5e0136c94f4018a77e0e77c6dfbb705d516eec80
tests: make hash collision test collide harder

The issue fixed in the previous commit now correctly triggers a failure:
("assertion (list_add(&head, &itm[j]) == &itm[j]) failed")

Turns out the "shitty" hash function was not shitty enough.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tests/lib/test_typelist.h