summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-03-10 11:40:15 -0800
committerGitHub <noreply@github.com>2021-03-10 19:40:15 +0000
commit27fb04bc96999e101b45458c549345e864e085e9 (patch)
treedb3326985c464226c544c3b234ca772efa1854f9 /test
parent99acb6adc4858e9228a75283c0d4a640ce7cc812 (diff)
cmake: Fix optimization level for debug builds. (#6097)
Further cleans up some unused variables and moves the configuration of best to configure.sh.
Diffstat (limited to 'test')
-rw-r--r--test/unit/expr/node_black.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/expr/node_black.cpp b/test/unit/expr/node_black.cpp
index 61150799c..0d481ea4f 100644
--- a/test/unit/expr/node_black.cpp
+++ b/test/unit/expr/node_black.cpp
@@ -107,9 +107,12 @@ TEST_F(TestNodeBlackNode, copy_ctor) { Node e(Node::null()); }
TEST_F(TestNodeBlackNode, dtor)
{
/* No access to internals? Only test that this is crash free. */
- Node* n;
+ Node* n = nullptr;
ASSERT_NO_FATAL_FAILURE(n = new Node());
- delete n;
+ if (n)
+ {
+ delete n;
+ }
}
/* operator== */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback