Skip to content

Commit 86cef23

Browse files
committed
Updated
1 parent 48139b1 commit 86cef23

File tree

7 files changed

+28
-21
lines changed

7 files changed

+28
-21
lines changed

.cppsm

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ notifications:
66
matrix:
77
include:
88
- os: linux
9-
dist: trusty
9+
dist: xenial
1010
addons:
1111
apt:
1212
sources:
1313
- ubuntu-toolchain-r-test
14-
- llvm-toolchain-trusty-7
1514
packages:
1615
- g++-8
17-
- clang-7
16+
env:
17+
- GNU_CC="gcc-8"
18+
- GNU_CXX="g++-8"
19+
- CLANG_CC="clang"
20+
- CLANG_CXX="clang++"
1821
- os: osx
1922
osx_image: xcode10.2
2023
- os: windows

internals/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
add_conventional_executable_test(dumpster_test)
2-
target_link_libraries(dumpster_test PRIVATE dumpster_v1 testing_v1)
1+
add_conventional_executable_tests(PRIVATE dumpster_v1 testing_v1)

internals/testing/finally_test.cpp renamed to internals/testing/finally_function_test.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@
44

55
using namespace testing_v1;
66

7-
auto finally_lambda_test = test([]() {
8-
bool finalized = false;
9-
bool executed = false;
10-
11-
{
12-
auto finalizer = dumpster_v1::finally([&]() { finalized = true; });
13-
executed = !finalized;
14-
}
15-
16-
verify(finalized);
17-
verify(executed);
18-
});
19-
207
static bool s_finalized = false;
218
static void s_function() { s_finalized = true; }
229

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include "dumpster_v1/finally.hpp"
2+
3+
#include "testing_v1/test.hpp"
4+
5+
using namespace testing_v1;
6+
7+
auto finally_lambda_test = test([]() {
8+
bool finalized = false;
9+
bool executed = false;
10+
11+
{
12+
auto finalizer = dumpster_v1::finally([&]() { finalized = true; });
13+
executed = !finalized;
14+
}
15+
16+
verify(finalized);
17+
verify(executed);
18+
});

0 commit comments

Comments
 (0)