LWN.net Logo

Are there any unit tests for this?

Are there any unit tests for this?

Posted Jun 11, 2010 14:15 UTC (Fri) by walles (guest, #954)
In reply to: Are there any unit tests for this? by bronson
Parent article: Another OOM killer rewrite

The unit that would be nice to have tests for would be whatever it is that:
* takes as input the system state
* outputs the PID to kill first.

Regards /Johan


(Log in to post comments)

Are there any unit tests for this?

Posted Jun 12, 2010 17:42 UTC (Sat) by bronson (subscriber, #4806) [Link]

* outputs the PID to kill first.

Sounds good.

* takes as input the system state

Is that all? :) Still having a hard time picturing a discrete unit to test here.

Are there any unit tests for this?

Posted Jun 13, 2010 23:22 UTC (Sun) by Oddscurity (guest, #46851) [Link]

I'm thinking the unit to be tested suggested by GP is the aforementioned badness() function.

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