mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Better error handling - report from iotest
This commit is contained in:
1 parent
6a8b5b06d0
commit
017c7290d6
6 files changed
+1358
-2556
No files matched your search
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user