ソースを参照

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);
 	printf("LOG_MSG_FUNC: %s\n", message);
 	mark_point();
 	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);
 	printf("LOG_MESSAGE: %s\n", message);
 	mark_point();
 	mark_point();
-	return 1;
+
+	return 0; /* Return 0 means "not yet handled" */
 }
 }