]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-ordered-set: add a case where we get 0 for duplicate entries 16561/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Jul 2020 13:47:21 +0000 (15:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Jul 2020 13:47:21 +0000 (15:47 +0200)
commitd4fa0493a75d6a94dcdd37c6124f4374e2d02cad
treea38bdd39d56d6a1a06b8b79926ee2f8605e1a5c4
parent2645d4bcc16881e72817a0f7ab01cc859634ad33
test-ordered-set: add a case where we get 0 for duplicate entries

This API is a complete mess. We forgot to do a hashed comparison for duplicate
entries and we use a direct pointer comparison. For trivial_hash_ops the result
is the same. For all other case, it's not. Fixing this properly will require
auditing all the uses of set_put() and ordered_set_put(). For now, let's just
acknowledge the breakage.
src/test/test-ordered-set.c