From 08dc402e77e32f7b69debd31949a72bc864e96e6 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 22 Sep 2018 15:40:19 +0300 Subject: [PATCH] Simplify after_main_test --- test/Jamfile.v2 | 2 +- test/after_main_test.cpp | 4 ++++ test/after_main_test_1.cpp | 9 --------- test/after_main_test_2.cpp | 10 ---------- 4 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 test/after_main_test_1.cpp delete mode 100644 test/after_main_test_2.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 7e5bddd..03ef7c4 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -126,7 +126,7 @@ system-run win32_hresult_test.cpp ; system-run error_category_test.cpp ; system-run generic_category_test.cpp ; system-run system_category_test.cpp ; -system-run after_main_test.cpp after_main_test_1.cpp after_main_test_2.cpp ; +system-run after_main_test.cpp ; # Quick (CI) test run quick.cpp ; diff --git a/test/after_main_test.cpp b/test/after_main_test.cpp index 79fc5b4..520f807 100644 --- a/test/after_main_test.cpp +++ b/test/after_main_test.cpp @@ -5,6 +5,7 @@ #include #include #include +#include using namespace boost::system; @@ -21,6 +22,9 @@ struct Z static Z z; +static error_code e1( 1, system_category() ); +static error_code e2( ENOENT, generic_category() ); + int main() { } diff --git a/test/after_main_test_1.cpp b/test/after_main_test_1.cpp deleted file mode 100644 index 5b9f728..0000000 --- a/test/after_main_test_1.cpp +++ /dev/null @@ -1,9 +0,0 @@ - -// Copyright 2018 Peter Dimov. -// Distributed under the Boost Software License, Version 1.0. - -#include - -using namespace boost::system; - -static error_code e1( 1, system_category() ); diff --git a/test/after_main_test_2.cpp b/test/after_main_test_2.cpp deleted file mode 100644 index 7da78e6..0000000 --- a/test/after_main_test_2.cpp +++ /dev/null @@ -1,10 +0,0 @@ - -// Copyright 2018 Peter Dimov. -// Distributed under the Boost Software License, Version 1.0. - -#include -#include - -using namespace boost::system; - -static error_code e2( ENOENT, generic_category() );