int main (int argc, char *const *argv) { unsigned int errorCount = 0; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0); errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, 0); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, 0); errorCount += testExternalGet (); if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL)) { errorCount += testGet(MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_POLL); errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, MHD_USE_POLL); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_POLL); } if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) { errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_EPOLL_LINUX_ONLY); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_EPOLL_LINUX_ONLY); } if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; int port = 1081; oneone = NULL != strstr (argv[0], "11"); if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; response = MHD_create_response_from_buffer (strlen ("/hello_world"), "/hello_world", MHD_RESPMEM_MUST_COPY); errorCount += testInternalGet (port++, 0); errorCount += testMultithreadedGet (port++, 0); errorCount += testMultithreadedPoolGet (port++, 0); errorCount += testExternalGet (port++); #ifndef WINDOWS errorCount += testInternalGet (port++, MHD_USE_POLL); errorCount += testMultithreadedGet (port++, MHD_USE_POLL); errorCount += testMultithreadedPoolGet (port++, MHD_USE_POLL); #endif #if EPOLL_SUPPORT errorCount += testInternalGet (port++, MHD_USE_EPOLL_LINUX_ONLY); errorCount += testMultithreadedPoolGet (port++, MHD_USE_EPOLL_LINUX_ONLY); #endif MHD_destroy_response (response); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; int port = 1081; oneone = (NULL != strrchr (argv[0], (int) '/')) ? (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; response = MHD_create_response_from_buffer (strlen ("/hello_world"), "/hello_world", MHD_RESPMEM_MUST_COPY); errorCount += testExternalGet (port++); errorCount += testInternalGet (port++, 0); errorCount += testMultithreadedGet (port++, 0); errorCount += testMultithreadedPoolGet (port++, 0); if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL)) { errorCount += testInternalGet(port++, MHD_USE_POLL); errorCount += testMultithreadedGet(port++, MHD_USE_POLL); errorCount += testMultithreadedPoolGet(port++, MHD_USE_POLL); } if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) { errorCount += testInternalGet(port++, MHD_USE_EPOLL_LINUX_ONLY); errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL_LINUX_ONLY); } MHD_destroy_response (response); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; oneone = NULL != strstr (argv[0], "11"); if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testInternalGet (0); errorCount += testMultithreadedGet (0); errorCount += testMultithreadedPoolGet (0); errorCount += testUnknownPortGet (0); errorCount += testStopRace (0); errorCount += testExternalGet (); #ifndef WINDOWS errorCount += testInternalGet (MHD_USE_POLL); errorCount += testMultithreadedGet (MHD_USE_POLL); errorCount += testMultithreadedPoolGet (MHD_USE_POLL); errorCount += testUnknownPortGet (MHD_USE_POLL); errorCount += testStopRace (MHD_USE_POLL); #endif #if EPOLL_SUPPORT errorCount += testInternalGet (MHD_USE_EPOLL_LINUX_ONLY); errorCount += testMultithreadedPoolGet (MHD_USE_EPOLL_LINUX_ONLY); errorCount += testUnknownPortGet (MHD_USE_EPOLL_LINUX_ONLY); #endif if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; oneone = NULL != strstr (argv[0], "11"); if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0); errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, 0); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, 0); errorCount += testExternalGet (); #ifndef WINDOWS errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_POLL); errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, MHD_USE_POLL); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_POLL); #endif #if EPOLL_SUPPORT errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_EPOLL_LINUX_ONLY); errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_EPOLL_LINUX_ONLY); #endif if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; oneone = (NULL != strrchr (argv[0], (int) '/')) ? (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testExternalGet (); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testInternalGet (); errorCount += testMultithreadedGet (); errorCount += testExternalGet (); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; oneone = (NULL != strrchr (argv[0], (int) '/')) ? (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; errorCount += testInternalGet (); errorCount += testMultithreadedGet (); errorCount += testMultithreadedPoolGet (); errorCount += testExternalGet (); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; (void)argc; /* Unused. Silent compiler warning. */ if (NULL == argv || 0 == argv[0]) return 99; oneone = has_in_name (argv[0], "11"); if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testExternalGet (); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); if (!gcry_check_version (GCRYPT_VERSION)) abort (); if (0 != curl_global_init (CURL_GLOBAL_ALL)) { fprintf (stderr, "Error: %s\n", strerror (errno)); return -1; } if (0 != (errorCount = testExternalGet ())) fprintf (stderr, "Fail: %d\n", errorCount); curl_global_cleanup (); return errorCount != 0; }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; int port = 1130; (void)argc; /* Unused. Silent compiler warning. */ if (NULL == argv || 0 == argv[0]) return 99; oneone = has_in_name (argv[0], "11"); if (oneone) port += 15; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; response = MHD_create_response_from_buffer (strlen ("/hello_world"), "/hello_world", MHD_RESPMEM_MUST_COPY); errorCount += testExternalGet (port++); if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) { errorCount += testInternalGet (port++, MHD_USE_AUTO); errorCount += testMultithreadedGet (port++, MHD_USE_AUTO); errorCount += testMultithreadedPoolGet (port++, MHD_USE_AUTO); errorCount += testInternalGet (port++, 0); errorCount += testMultithreadedGet (port++, 0); errorCount += testMultithreadedPoolGet (port++, 0); if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL)) { errorCount += testInternalGet(port++, MHD_USE_POLL); errorCount += testMultithreadedGet(port++, MHD_USE_POLL); errorCount += testMultithreadedPoolGet(port++, MHD_USE_POLL); } if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) { errorCount += testInternalGet(port++, MHD_USE_EPOLL); errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL); } } MHD_destroy_response (response); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; errorCount += testInternalGet (0); errorCount += testMultithreadedGet (0); errorCount += testMultithreadedPoolGet (0); errorCount += testExternalGet (); #ifndef WINDOWS errorCount += testInternalGet (MHD_USE_POLL); errorCount += testMultithreadedGet (MHD_USE_POLL); errorCount += testMultithreadedPoolGet (MHD_USE_POLL); #endif #if EPOLL_SUPPORT errorCount += testInternalGet (MHD_USE_EPOLL_LINUX_ONLY); errorCount += testMultithreadedPoolGet (MHD_USE_EPOLL_LINUX_ONLY); #endif if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); return errorCount != 0; /* 0 == pass */ }
int main (int argc, char *const *argv) { unsigned int errorCount = 0; oneone = (NULL != strrchr (argv[0], (int) '/')) ? (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; if (0 != curl_global_init (CURL_GLOBAL_WIN32)) return 2; errorCount += testInternalGet (0); errorCount += testMultithreadedGet (0); errorCount += testMultithreadedPoolGet (0); errorCount += testUnknownPortGet (0); errorCount += testStopRace (0); errorCount += testExternalGet (); errorCount += testEmptyGet (0); if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL)) { errorCount += testInternalGet(MHD_USE_POLL); errorCount += testMultithreadedGet(MHD_USE_POLL); errorCount += testMultithreadedPoolGet(MHD_USE_POLL); errorCount += testUnknownPortGet(MHD_USE_POLL); errorCount += testStopRace(MHD_USE_POLL); errorCount += testEmptyGet(MHD_USE_POLL); } if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) { errorCount += testInternalGet(MHD_USE_EPOLL_LINUX_ONLY); errorCount += testMultithreadedPoolGet(MHD_USE_EPOLL_LINUX_ONLY); errorCount += testUnknownPortGet(MHD_USE_EPOLL_LINUX_ONLY); errorCount += testEmptyGet(MHD_USE_EPOLL_LINUX_ONLY); } if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); curl_global_cleanup (); return errorCount != 0; /* 0 == pass */ }