List:Commits« Previous MessageNext Message »
From:sebrecht Date:April 10 2007 7:41pm
Subject:ODBC C-tests commit: r71 - trunk/testutil
View as plain text  
Modified:
   trunk/testutil/CuTest.c
Log:
changing indenting


Modified: trunk/testutil/CuTest.c
===================================================================
--- trunk/testutil/CuTest.c	2007-04-10 18:10:39 UTC (rev 70)
+++ trunk/testutil/CuTest.c	2007-04-10 19:41:16 UTC (rev 71)
@@ -186,27 +186,28 @@
       testSuite->name, tc->suite_name, tc->name);
 
   if (tc->todo)
-    {
-      /*
-	http://perldoc.perl.org/Test/Harness/TAP.html#The-test-line
-	If the directive starts with # TODO , the test will be executed.
-	If the whole test file succeeds or fails, the count
-	of todo tests is included in the generated output.
-	The harness should report the text after  # TODO\S*\s+
-	as a reason for todo.
-      */
-      char buf[HUGE_STRING_LEN];
+  {
+    /*
+      http://perldoc.perl.org/Test/Harness/TAP.html#The-test-line
+      If the directive starts with # TODO , the test will be executed.
+      If the whole test file succeeds or fails, the count
+      of todo tests is included in the generated output.
+      The harness should report the text after  # TODO\S*\s+
+      as a reason for todo.
+    */
+    
+    char buf[HUGE_STRING_LEN];
 
-      printf("\n# TODO %s", tc->todomessage);
-      testSuite->todoCount++;
-      if(tc->failed) testSuite->todofailCount++;
+    printf("\n# TODO %s", tc->todomessage);
+    testSuite->todoCount++;
+    if (tc->failed) testSuite->todofailCount++;
 
-      if(testSuite->todoCount>1)
-	sprintf(buf,"%s, %d", testSuite->todotest, testSuite->testNum);
-      else 
-	sprintf(buf,"%d", testSuite->testNum);
-      testSuite->todotest = buf;
-    }
+    if (testSuite->todoCount>1)
+      sprintf(buf, "%s, %d", testSuite->todotest, testSuite->testNum);
+    else 
+      sprintf(buf, "%d", testSuite->testNum);
+    testSuite->todotest= buf;
+  }
   if (tc->failed)
   {
     /*
@@ -222,10 +223,10 @@
     char buf[HUGE_STRING_LEN];
     printf("\n#   %s", tc->message);
     testSuite->failCount++;
-    if(testSuite->failCount>1)
-      sprintf(buf,"%s, %d", testSuite->failedtest, testSuite->testNum);
+    if (testSuite->failCount>1)
+      sprintf(buf, "%s, %d", testSuite->failedtest, testSuite->testNum);
     else 
-      sprintf(buf,"%d", testSuite->testNum);
+      sprintf(buf, "%d", testSuite->testNum);
     testSuite->failedtest = buf;
   }
   else if (tc->skipped)
@@ -242,10 +243,10 @@
     printf("\n# SKIP %s", tc->message);
     testSuite->skipCount++;
     if(testSuite->skipCount>1)
-	sprintf(buf,"%s, %d", testSuite->skippedtest, testSuite->testNum);
-      else 
-	sprintf(buf,"%d", testSuite->testNum);
-      testSuite->skippedtest = buf;
+	sprintf(buf, "%s, %d", testSuite->skippedtest, testSuite->testNum);
+    else 
+      sprintf(buf, "%d", testSuite->testNum);
+    testSuite->skippedtest = buf;
   }
 
   printf("\n");
@@ -303,7 +304,7 @@
 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const
char* message)
 {
   CuString string;
-
+  
   CuStringInit(&string);
   if (message2 != NULL)
   {
@@ -513,26 +514,26 @@
           testSuite->name, testSuite->list[0]->suite_name);
   }
   if (testSuite->skipCount)
-    {
-      printf("SKIPPED tests %s\n",testSuite->skippedtest);
-      printf("Skipped %d/%d tests\n",
-	     testSuite->skipCount, (testSuite->count + auxCount));
-    }
+  {
+    printf("SKIPPED tests %s\n", testSuite->skippedtest);
+    printf("Skipped %d/%d tests\n",
+	   testSuite->skipCount, (testSuite->count + auxCount));
+  }
   if (testSuite->todoCount)
-    {
-      printf("TODO tests %s\n",testSuite->todotest);
-      printf("Todo %d/%d tests, Failed %d/%d tests, %.2lf%% ok\n",
-	     testSuite->todoCount, (testSuite->count + auxCount), 
-	     testSuite->todofailCount, (testSuite->todoCount),
-	     (100.0 - (double)testSuite->todofailCount / (testSuite->todoCount) * 100.0));
+  {
+    printf("TODO tests %s\n", testSuite->todotest);
+    printf("Todo %d/%d tests, Failed %d/%d tests, %.2lf%% ok\n",
+	   testSuite->todoCount, (testSuite->count + auxCount), 
+	   testSuite->todofailCount, (testSuite->todoCount),
+	   (100.0 - (double)testSuite->todofailCount / (testSuite->todoCount) * 100.0));
     }
   if (testSuite->failCount)
   {
-    printf("FAILED tests %s\n",testSuite->failedtest);
+    printf("FAILED tests %s\n", testSuite->failedtest);
     printf("Failed %d/%d tests, %.2lf%% ok\n",
-          testSuite->failCount, (testSuite->count + auxCount),
-          (100.0 - ((double)testSuite->failCount / (testSuite->count + auxCount)) *
100.0));
-    }
+	   testSuite->failCount, (testSuite->count + auxCount),
+	   (100.0 - ((double)testSuite->failCount / (testSuite->count + auxCount)) *
100.0));
+  }
 }
 
 void CuSuiteSummary(CuSuite* testSuite, CuString* summary)

Thread
ODBC C-tests commit: r71 - trunk/testutilsebrecht10 Apr