Selaa lähdekoodia

Unit test: print something from the unit test, so test frameworks do not consider the test as hanging

bel 10 vuotta sitten
vanhempi
commit
376ea12aeb
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      test/public_server.c

+ 3 - 0
test/public_server.c

@@ -74,11 +74,14 @@ static int wait_not_null(void *volatile *data)
 {
 	int i;
 	for (i = 0; i < 100; i++) {
+        printf("Waiting for response ... %i\n", i);
 		test_sleep(1);
 		if (*data != NULL) {
+            printf("Waiting for response ... %i (done)\n", i);
 			return 1;
 		}
 	}
+    printf("Waiting for response ... %i (failed)\n", i);
 	return 0;
 }