From c4c30b6452c1f01c6e8c808be27d82dd370e63fa Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 5 Oct 2017 21:44:59 -0600 Subject: [PATCH] Adjust tests. --- tests/base/aligned_vector_04.cc | 8 ++++++++ tests/base/aligned_vector_04.output | 9 ++++----- tests/base/table_06.cc | 8 ++++++++ tests/base/table_06.output | 8 ++++---- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/tests/base/aligned_vector_04.cc b/tests/base/aligned_vector_04.cc index ad590c5b07..7363c1af25 100644 --- a/tests/base/aligned_vector_04.cc +++ b/tests/base/aligned_vector_04.cc @@ -46,6 +46,14 @@ public: deallog << "Construct object" << std::endl; } + Function(const Function &f) + : + size_ (f.size_), + vec (f.vec) + { + deallog << "Copy construct object" << std::endl; + } + ~Function() { deallog << "Destruct with size " << vec.size() << std::endl; diff --git a/tests/base/aligned_vector_04.output b/tests/base/aligned_vector_04.output index be5adf2852..22b320c000 100644 --- a/tests/base/aligned_vector_04.output +++ b/tests/base/aligned_vector_04.output @@ -1,18 +1,17 @@ DEAL::Construct object -DEAL::Destruct with size 0 +DEAL::Construct object DEAL::Resize vector to 2 DEAL::Resize vector to 2 DEAL::Resize vector to 3 DEAL::Construct object DEAL::Destruct with size 0 -DEAL::Construct object -DEAL::Destruct with size 0 DEAL::Destruct with size 0 DEAL::Resize vector to 2 -DEAL::Construct object +DEAL::Copy construct object DEAL::Destruct with size 2 -DEAL::Destruct with size 0 +DEAL::Construct object +DEAL::Construct object DEAL::Resize vector to 3 DEAL::Construct object DEAL::Destruct with size 0 diff --git a/tests/base/table_06.cc b/tests/base/table_06.cc index 612e38e383..24c3f6c7d2 100644 --- a/tests/base/table_06.cc +++ b/tests/base/table_06.cc @@ -46,6 +46,14 @@ public: deallog << "Construct object" << std::endl; } + Function (const Function &f) + : + size_ (f.size_), + vec (f.vec) + { + deallog << "Copy construct object" << std::endl; + } + ~Function() { deallog << "Destruct with size " << vec.size() << std::endl; diff --git a/tests/base/table_06.output b/tests/base/table_06.output index b026ea2643..54aa661dc7 100644 --- a/tests/base/table_06.output +++ b/tests/base/table_06.output @@ -1,6 +1,6 @@ DEAL::Construct object -DEAL::Destruct with size 0 +DEAL::Construct object DEAL::Resize vector to 2 DEAL::Resize vector to 2 DEAL::Destruct with size 2 @@ -8,11 +8,11 @@ DEAL::Construct object DEAL::Destruct with size 0 DEAL::Resize vector to 2 DEAL::Resize vector to 3 -DEAL::Construct object DEAL::Destruct with size 3 -DEAL::Destruct with size 0 DEAL::Construct object -DEAL::Destruct with size 0 +DEAL::Construct object +DEAL::Construct object +DEAL::Construct object DEAL::Resize vector to 2 DEAL::Destruct with size 0 DEAL::Destruct with size 0 -- 2.39.5