Daniel P. Berrange 2d533a465a Fix command test wrt gnutls initialize & fix debugging
The VIR_TEST_DEBUG and VIR_TEST_VERBOSE env vars did not work
because we replaced 'environ' with 'newenv'. Simply calling
virTestGetDebug/Verbose() before replacing the 'environ' ensures
we have processed the env variables.

The gnutls initialization code opens /dev/urandom and keeps that
FD around for later use. We have code which kills off FDs 3-5
to avoid interfereing with our test case. Move the virInitialize
call before this point, so it kills off the gnutls /dev/urandom
FD which is irrelevant for testing purposes

* tests/commandtest.c: Fix test debugging & make it robust against
  opened FDs
2011-08-25 12:05:54 +01:00
..
2010-05-12 08:41:10 +02:00
2011-07-11 19:38:51 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 14:26:40 -06:00
2011-06-30 18:04:02 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2011-06-24 08:01:10 -06:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-07-11 09:21:37 -06:00
2011-07-21 10:34:51 -06:00
2009-07-16 15:06:42 +02:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-07-14 07:14:05 -06:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-07-11 19:38:51 +02:00
2011-07-11 19:38:51 +02:00
2011-07-11 19:38:51 +02:00