浏览代码

Unit test: test_log_message must not interfere with internal error handling

bel2125 7 年之前
父节点
当前提交
f8221a5534
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      test/public_server.c

+ 3 - 2
test/public_server.c

@@ -274,7 +274,7 @@ log_msg_func(const struct mg_connection *conn, const char *message)
 	printf("LOG_MSG_FUNC: %s\n", message);
 	mark_point();
 
-	return 1;
+	return 1; /* Return 1 means "already handled" */
 }
 
 
@@ -285,7 +285,8 @@ test_log_message(const struct mg_connection *conn, const char *message)
 
 	printf("LOG_MESSAGE: %s\n", message);
 	mark_point();
-	return 1;
+
+	return 0; /* Return 0 means "not yet handled" */
 }