Explorar o código

actually update errors variable when a test fails

Mike Frysinger %!s(int64=17) %!d(string=hai) anos
pai
achega
a3762dfa4a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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",