]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: avoid seclabeltest crash
authorEric Blake <eblake@redhat.com>
Fri, 20 Jul 2012 20:44:54 +0000 (14:44 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 20 Jul 2012 21:04:23 +0000 (15:04 -0600)
commita22a36e8feaef19413e1a6af533eaa50f3c5df2d
tree5f7780088b46fc4628b8df8f37641ee36fcdb06a
parentbe7e61a67ee88d9a7cea002bc525aab426cfd3a9
tests: avoid seclabeltest crash

Commit a56c347 introduced a use of random numbers into seclabel
handling, but failed to initialize the random number generator
in the testsuite.  Also, fail with usual status, not 255.

* tests/seclabeltest.c (main): Initialize randomness.
tests/seclabeltest.c