Adding RPC test. Update editor-servers to flush stdout

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-12-08 00:21:02 -08:00
parent 54fd0011a7
commit 80a216e079
5 changed files with 1800 additions and 1 deletions
@@ -41,6 +41,9 @@ namespace Multiplayer
// Automated testing listens for these logs
if (editorsv_isDedicated)
{
// Server logs piped to the editor. Change the buffering policy to ensure every write to stdout is flushed.
setvbuf(stdout, NULL, _IONBF, 0);
// If the settings registry is not available at this point,
// then something catastrophic has happened in the application startup.
// That should have been caught and messaged out earlier in startup.
@@ -235,5 +238,4 @@ namespace Multiplayer
{
return MultiplayerEditorPackets::DispatchPacket(connection, packetHeader, serializer, *this);
}
}
@@ -12,6 +12,7 @@
#include <AzCore/IO/ByteContainerStream.h>
#include <AzNetworking/ConnectionLayer/IConnectionListener.h>
#include <AzCore/Settings/SettingsRegistry.h>
#include <AzCore/Component/TickBus.h>
namespace AzNetworking
{