Procházet zdrojové kódy

actually update errors variable when a test fails

Mike Frysinger před 16 roky
rodič
revize
a3762dfa4a
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      test/inet/tst-network.c

+ 1 - 0
test/inet/tst-network.c

@@ -61,6 +61,7 @@ main (void)
 
       if (res != tests[i].number)
 	{
+	  ++errors;
 	  printf ("Test failed for inet_network (\"%s\"):\n",
 		  tests[i].network);
 	  printf ("Expected return value %u (0x%x) but got %u (0x%x).\n",