mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 17:56:26 +00:00
tests: unconditionally enabled server tests
This commit is contained in:
parent
b56b51fcaf
commit
90f8db269f
@ -149,9 +149,7 @@ if(BUILD_TESTING)
|
||||
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||
add_subdirectory(CMakeLib)
|
||||
|
||||
if(CMake_TEST_SERVER_MODE)
|
||||
add_subdirectory(CMakeServerLib)
|
||||
endif()
|
||||
add_subdirectory(CMakeServerLib)
|
||||
endif()
|
||||
add_subdirectory(CMakeOnly)
|
||||
add_subdirectory(RunCMake)
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include "cmConnection.h"
|
||||
#include "cmServerConnection.h"
|
||||
#include <iostream>
|
||||
#include <stddef.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -51,8 +50,8 @@ int testServerBuffering(int, char** const)
|
||||
std::unique_ptr<cmConnectionBufferStrategy>(new cmServerBufferStrategy);
|
||||
std::vector<std::string> response;
|
||||
std::string rawBuffer;
|
||||
for (size_t i = 0; i < fullMessage.size(); i++) {
|
||||
rawBuffer += fullMessage[i];
|
||||
for (auto& messageChar : fullMessage) {
|
||||
rawBuffer += messageChar;
|
||||
std::string packet = bufferingStrategy->BufferMessage(rawBuffer);
|
||||
do {
|
||||
if (!packet.empty() && packet != "\r\n") {
|
||||
|
Loading…
Reference in New Issue
Block a user