Revision 3c1e4af0
ID | 3c1e4af0db93aaa6b4a1617a8e50033f179c3c09 |
Fix integer overflow in Node unittest
When using a really random "extra cpus" variable, this can overflow
(especially on 32 bit) and thus the final value can be < 0, thus the
test will fail to fail.
It doesn't make sense to test with huge values, so let's just generate
a reasonable value.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Files
- added
- modified
- copied
- renamed
- deleted