IXWebSocket/test/test_runner.cpp

30 lines
532 B
C++
Raw Normal View History

2018-12-29 18:33:15 -08:00
/*
* test_runner.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2018 Machine Zone. All rights reserved.
*/
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
2019-09-23 10:25:23 -07:00
#include <ixwebsocket/IXNetSystem.h>
#include <spdlog/spdlog.h>
#ifndef _WIN32
#include <signal.h>
#endif
int main(int argc, char* argv[])
2018-12-29 18:33:15 -08:00
{
ix::initNetSystem();
#ifndef _WIN32
signal(SIGPIPE, SIG_IGN);
#endif
spdlog::set_level(spdlog::level::debug);
2018-12-29 18:33:15 -08:00
int result = Catch::Session().run(argc, argv);
ix::uninitNetSystem();
2018-12-29 18:33:15 -08:00
return result;
}