[Gnucash-changes] r12817 - gnucash/trunk/src/engine/test - sane indenting

Chris Shoemaker chris at cvs.gnucash.org
Mon Jan 16 21:28:14 EST 2006


Author: chris
Date: 2006-01-16 21:28:13 -0500 (Mon, 16 Jan 2006)
New Revision: 12817
Trac: http://svn.gnucash.org/trac/changeset/12817

Modified:
   gnucash/trunk/src/engine/test/test-lots.c
Log:
sane indenting


Modified: gnucash/trunk/src/engine/test/test-lots.c
===================================================================
--- gnucash/trunk/src/engine/test/test-lots.c	2006-01-17 02:26:16 UTC (rev 12816)
+++ gnucash/trunk/src/engine/test/test-lots.c	2006-01-17 02:28:13 UTC (rev 12817)
@@ -72,28 +72,29 @@
 int
 main (int argc, char **argv)
 {
-	gint i;
+    gint i;
 
-	qof_init();
-	if(cashobjects_register()) {
-  /* Any tests that cause an error or warning to be printed
-   * automatically fail! */
-  g_log_set_always_fatal( G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING );
-  /* Set up a reproducible test-case */
-  srand(0);
-  /* Iterate the test a number of times */
-		for (i=0; i< max_iterate; i++)
-  {
-			fprintf(stdout, " Lots: %d of %d paired tests . . . \r",
-				(i + 1)*2, max_iterate * 2);
-			fflush(stdout);
-    run_test ();
-  }
-		/* 'erase' the recurring tag line with dummy spaces. */
-		fprintf(stdout, "Lots: Test series complete.         \n");
-		fflush(stdout);
-  print_test_results();
-	}
-	qof_close();
-  return 0;
+    qof_init();
+    if (!cashobjects_register())
+        exit(1);
+
+    /* Any tests that cause an error or warning to be printed
+     * automatically fail! */
+    g_log_set_always_fatal( G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING );
+    /* Set up a reproducible test-case */
+    srand(0);
+    /* Iterate the test a number of times */
+    for (i=0; i< max_iterate; i++) {
+        fprintf(stdout, " Lots: %d of %d paired tests . . . \r",
+                (i + 1)*2, max_iterate * 2);
+        fflush(stdout);
+        run_test ();
+    }
+    /* 'erase' the recurring tag line with dummy spaces. */
+    fprintf(stdout, "Lots: Test series complete.         \n");
+    fflush(stdout);
+    print_test_results();
+
+    qof_close();
+    return 0;
 }



More information about the gnucash-changes mailing list