Prechádzať zdrojové kódy

actually update errors variable when a test fails

Mike Frysinger 16 rokov pred
rodič
commit
a3762dfa4a
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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",