This commit is contained in:
@@ -2,8 +2,10 @@ cmake_minimum_required (VERSION 3.0)
|
|||||||
|
|
||||||
project (librestd)
|
project (librestd)
|
||||||
|
|
||||||
|
if(DOMO_BUILD_TEST)
|
||||||
add_definitions (-g -DBUILD_DEBUG)
|
add_definitions (-g -DBUILD_DEBUG)
|
||||||
add_definitions("-fprofile-arcs -ftest-coverage")
|
add_definitions("-fprofile-arcs -ftest-coverage")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories (${CMAKE_SOURCE_DIR}/../libevent/include)
|
include_directories (${CMAKE_SOURCE_DIR}/../libevent/include)
|
||||||
include_directories (${CMAKE_BINARY_DIR}/libevent/include)
|
include_directories (${CMAKE_BINARY_DIR}/libevent/include)
|
||||||
|
|||||||
@@ -23,7 +23,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*------------------------------- INCLUDES ----------------------------------*/
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <qlibc/qlibc.h>
|
#include <qlibc/qlibc.h>
|
||||||
#include <qlibc/extensions/qhttpclient.h>
|
#include <qlibc/extensions/qhttpclient.h>
|
||||||
|
|||||||
@@ -404,7 +404,8 @@ TEST("Rest - create start access rest hook free\t")
|
|||||||
ret = restd_server_start(rest_server);
|
ret = restd_server_start(rest_server);
|
||||||
ASSERT_EQUAL_INT(ret, 0);
|
ASSERT_EQUAL_INT(ret, 0);
|
||||||
|
|
||||||
|
sleep(1);
|
||||||
|
|
||||||
ret = exec_request(kget_method, "http://localhost:"kserver_port kapi_test_get, 200, ksuccess_get_body);
|
ret = exec_request(kget_method, "http://localhost:"kserver_port kapi_test_get, 200, ksuccess_get_body);
|
||||||
ASSERT_EQUAL_INT(ret, 0);
|
ASSERT_EQUAL_INT(ret, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user