diff --git a/cmake/Common.cmake b/cmake/Common.cmake index 796d26c8..fa32e178 100755 --- a/cmake/Common.cmake +++ b/cmake/Common.cmake @@ -90,11 +90,12 @@ ELSE () MESSAGE(STATUS "================ ERROR: This platform is unsupported!!! ================") ENDIF (UNIX) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char") + IF (WIN32) add_definitions(-DNOMINMAX) ENDIF () - #------------------------------------------------------------- set(TARS2CPP "${CMAKE_BINARY_DIR}/bin/tars2cpp") diff --git a/servant/makefile/makefile.tars b/servant/makefile/makefile.tars index 0e810097..cc9f26e9 100644 --- a/servant/makefile/makefile.tars +++ b/servant/makefile/makefile.tars @@ -7,7 +7,7 @@ TARS_PATH :=/usr/local/tars/cpp CC = gcc CXX = g++ -CFLAGS += -std=c++11 -g -O2 -Wno-deprecated -Wall +CFLAGS += -std=c++11 -g -O2 -Wno-deprecated -Wall -fsigned-char #------------------------------------------------------------------------------- diff --git a/servant/makefile/tars-tools.cmake b/servant/makefile/tars-tools.cmake index a93b2eea..21d49c9a 100755 --- a/servant/makefile/tars-tools.cmake +++ b/servant/makefile/tars-tools.cmake @@ -79,6 +79,8 @@ ELSE () MESSAGE(STATUS "================ ERROR: This platform is unsupported!!! ================") ENDIF (UNIX) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char") + set(TARS_RELEASE "${PROJECT_BINARY_DIR}/run-release.cmake") FILE(WRITE ${TARS_RELEASE} "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E echo release all)\n") diff --git a/unit-test/rpc/test_proxy_timeout.cpp b/unit-test/rpc/test_proxy_timeout.cpp index 8b9e938b..89225b81 100755 --- a/unit-test/rpc/test_proxy_timeout.cpp +++ b/unit-test/rpc/test_proxy_timeout.cpp @@ -10,22 +10,28 @@ TEST_F(HelloTest, proxyInvokeTimeout) checkSyncTimeout(comm); }, c.get()); + LOG_CONSOLE_DEBUG << endl; + transInCoroutineGlobalCommunicator([&](Communicator *comm){ checkSyncTimeout(comm); }, c.get()); + LOG_CONSOLE_DEBUG << endl; transServerCommunicator([&](Communicator *comm){ checkSyncTimeout(comm); }); + LOG_CONSOLE_DEBUG << endl; transInCoroutineServerCommunicator([&](Communicator *comm){ checkSyncTimeout(comm); }); + LOG_CONSOLE_DEBUG << endl; transAllocCommunicator([&](Communicator *comm){ checkSyncTimeout(comm); }); + LOG_CONSOLE_DEBUG << endl; transInCoroutineAllocCommunicator([&](Communicator *comm){ checkSyncTimeout(comm); });