Better error handling - report from iotest

This commit is contained in:
Sergey Lyubka committed 2022-06-29 17:02:37 +01:00
1 parent 6a8b5b06d0
commit 017c7290d6
6 files changed
+1358 -2556

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
#include "mongoose.h"
#include "float.h" // For DBL_EPSILON and HUGE_VAL
#include "math.h"
#include "mongoose.h"
static int s_num_tests = 0;
@@ -606,7 +607,7 @@ static void test_ws(void) {
static void eh9(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (ev == MG_EV_ERROR) {
ASSERT(!strcmp((char *) ev_data, "error connecting to 127.0.0.1:55117"));
ASSERT(!strcmp((char *) ev_data, "socket error"));
*(int *) fn_data = 7;
}
(void) c;