LWN.net Logo

A generic hash table

A generic hash table

Posted Aug 14, 2012 17:02 UTC (Tue) by sashal (subscriber, #81842)
In reply to: A generic hash table by pj
Parent article: A generic hash table

Indeed this is a great suggestion. Some sort of CONFIG_HASHTABLE_TEST (similar to what happens with list sorting for example) is definitely something I'd like to add.

Thanks for the suggestion!


(Log in to post comments)

User space unit tests?

Posted Aug 15, 2012 15:01 UTC (Wed) by alex (subscriber, #1355) [Link]

While enabling run time testing of some kernel features is useful (the VM torture tests spring to mind) it would be much better if library code was testable in a user space build that didn't involve bringing a kernel up.

How about adding "make unittests" as a target for the kernel build?

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds