From 27be5cbd5be87b2f25478defba19b21b276baa59 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Sat, 7 Sep 2013 20:56:19 +0200 Subject: [PATCH] arrays: fix some test to avoid valgrind error --- test/triqs/arrays/serialization.cpp | 3 +++ test/triqs/arrays/temp_slice.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/test/triqs/arrays/serialization.cpp b/test/triqs/arrays/serialization.cpp index b511cb2d..5737b269 100644 --- a/test/triqs/arrays/serialization.cpp +++ b/test/triqs/arrays/serialization.cpp @@ -19,6 +19,7 @@ * TRIQS. If not, see . * ******************************************************************************/ +#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK #include "./common.hpp" #include "./src/array.hpp" @@ -69,7 +70,9 @@ int main(int argc, char **argv) { ia >> A>> SL; // archive and stream closed when destructors are called } + std::cout<<"A is "<