Use K&R style for curly braces in tests/

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander
2014-03-18 09:13:43 +01:00
parent 0099a4ae2b
commit f19b3a5f0c
10 changed files with 84 additions and 43 deletions

View File

@@ -362,7 +362,8 @@ virtTestLoadFile(const char *file, char **buf)
#ifndef WIN32
static
void virtTestCaptureProgramExecChild(const char *const argv[],
int pipefd) {
int pipefd)
{
size_t i;
int open_max;
int stdinfd = -1;
@@ -629,7 +630,8 @@ virtTestLogContentAndReset(void)
static unsigned int
virTestGetFlag(const char *name) {
virTestGetFlag(const char *name)
{
char *flagStr;
unsigned int flag;
@@ -643,21 +645,24 @@ virTestGetFlag(const char *name) {
}
unsigned int
virTestGetDebug(void) {
virTestGetDebug(void)
{
if (testDebug == -1)
testDebug = virTestGetFlag("VIR_TEST_DEBUG");
return testDebug;
}
unsigned int
virTestGetVerbose(void) {
virTestGetVerbose(void)
{
if (testVerbose == -1)
testVerbose = virTestGetFlag("VIR_TEST_VERBOSE");
return testVerbose || virTestGetDebug();
}
unsigned int
virTestGetExpensive(void) {
virTestGetExpensive(void)
{
if (testExpensive == -1)
testExpensive = virTestGetFlag("VIR_TEST_EXPENSIVE");
return testExpensive;