diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-15 16:55:28 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-15 17:04:51 +0300 |
commit | dab2e231513e8540980dbd1136871a69a41428c1 (patch) | |
tree | 95010d85c035ae9131f6d5039219e1865a86af06 | |
parent | 42d39ec4bfdc2fc5ba18f06a254d9c830539cf41 (diff) | |
download | libmicrohttpd-dab2e231513e8540980dbd1136871a69a41428c1.tar.gz libmicrohttpd-dab2e231513e8540980dbd1136871a69a41428c1.zip |
test_upgrade: added missing fflush()
-rw-r--r-- | src/microhttpd/test_upgrade.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 64b0fc49..17aeba63 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -1433,6 +1433,8 @@ main (int argc, | |||
1433 | /* try external select */ | 1433 | /* try external select */ |
1434 | res = test_upgrade (0, | 1434 | res = test_upgrade (0, |
1435 | 0); | 1435 | 0); |
1436 | fflush (stderr); | ||
1437 | fflush (stdout); | ||
1436 | error_count += res; | 1438 | error_count += res; |
1437 | if (res) | 1439 | if (res) |
1438 | fprintf (stderr, | 1440 | fprintf (stderr, |
@@ -1444,6 +1446,8 @@ main (int argc, | |||
1444 | /* Try external auto */ | 1446 | /* Try external auto */ |
1445 | res = test_upgrade (MHD_USE_AUTO, | 1447 | res = test_upgrade (MHD_USE_AUTO, |
1446 | 0); | 1448 | 0); |
1449 | fflush (stderr); | ||
1450 | fflush (stdout); | ||
1447 | error_count += res; | 1451 | error_count += res; |
1448 | if (res) | 1452 | if (res) |
1449 | fprintf (stderr, | 1453 | fprintf (stderr, |
@@ -1455,6 +1459,8 @@ main (int argc, | |||
1455 | #ifdef EPOLL_SUPPORT | 1459 | #ifdef EPOLL_SUPPORT |
1456 | res = test_upgrade (MHD_USE_EPOLL, | 1460 | res = test_upgrade (MHD_USE_EPOLL, |
1457 | 0); | 1461 | 0); |
1462 | fflush (stderr); | ||
1463 | fflush (stdout); | ||
1458 | error_count += res; | 1464 | error_count += res; |
1459 | if (res) | 1465 | if (res) |
1460 | fprintf (stderr, | 1466 | fprintf (stderr, |
@@ -1468,6 +1474,8 @@ main (int argc, | |||
1468 | res = test_upgrade (MHD_USE_INTERNAL_POLLING_THREAD | 1474 | res = test_upgrade (MHD_USE_INTERNAL_POLLING_THREAD |
1469 | | MHD_USE_THREAD_PER_CONNECTION, | 1475 | | MHD_USE_THREAD_PER_CONNECTION, |
1470 | 0); | 1476 | 0); |
1477 | fflush (stderr); | ||
1478 | fflush (stdout); | ||
1471 | error_count += res; | 1479 | error_count += res; |
1472 | if (res) | 1480 | if (res) |
1473 | fprintf (stderr, | 1481 | fprintf (stderr, |
@@ -1479,6 +1487,8 @@ main (int argc, | |||
1479 | res = test_upgrade (MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | 1487 | res = test_upgrade (MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD |
1480 | | MHD_USE_THREAD_PER_CONNECTION, | 1488 | | MHD_USE_THREAD_PER_CONNECTION, |
1481 | 0); | 1489 | 0); |
1490 | fflush (stderr); | ||
1491 | fflush (stdout); | ||
1482 | error_count += res; | 1492 | error_count += res; |
1483 | if (res) | 1493 | if (res) |
1484 | fprintf (stderr, | 1494 | fprintf (stderr, |
@@ -1490,6 +1500,8 @@ main (int argc, | |||
1490 | res = test_upgrade (MHD_USE_INTERNAL_POLLING_THREAD | 1500 | res = test_upgrade (MHD_USE_INTERNAL_POLLING_THREAD |
1491 | | MHD_USE_THREAD_PER_CONNECTION | MHD_USE_POLL, | 1501 | | MHD_USE_THREAD_PER_CONNECTION | MHD_USE_POLL, |
1492 | 0); | 1502 | 0); |
1503 | fflush (stderr); | ||
1504 | fflush (stdout); | ||
1493 | error_count += res; | 1505 | error_count += res; |
1494 | if (res) | 1506 | if (res) |
1495 | fprintf (stderr, | 1507 | fprintf (stderr, |