Added checking for CATCH2_V2 to tests/unit/*.cpp

This commit is contained in:
Daniel Zagaynov
2023-06-06 02:46:54 +03:00
parent ea8a723da6
commit 2458290891
15 changed files with 19 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
#ifdef CATCH2_V2
#include "catch2/catch.hpp"
#else
#include "catch2/catch_all.hpp"
#endif

View File

@@ -40,7 +40,7 @@
#include "sockpp/acceptor.h"
#include "sockpp/inet_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/can_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -40,7 +40,7 @@
#include "sockpp/connector.h"
#include "sockpp/sock_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -40,7 +40,7 @@
#include "sockpp/datagram_socket.h"
#include "sockpp/inet_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/inet6_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/inet_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -38,7 +38,7 @@
//
#include "sockpp/result.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
using namespace sockpp;

View File

@@ -40,7 +40,7 @@
#include "sockpp/socket.h"
#include "sockpp/inet_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -40,7 +40,7 @@
#include "sockpp/stream_socket.h"
#include "sockpp/inet_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -41,7 +41,7 @@
#include "sockpp/tcp_socket.h"
#include "sockpp/tcp_connector.h"
#include "sockpp/tcp_acceptor.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/unix_address.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/unix_dgram_socket.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -39,7 +39,7 @@
//
#include "sockpp/unix_stream_socket.h"
#include "catch2/catch.hpp"
#include <catch2_version.h>
#include <string>
using namespace sockpp;

View File

@@ -56,7 +56,7 @@
#endif
#define CATCH_CONFIG_RUNNER
#include "catch2/catch.hpp"
#include <catch2_version.h>
int main(int argc, char* argv[])
{