From 0991f9c44859de82b280daf8611b731a051acf37 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 6 May 2020 11:29:50 -0500 Subject: [PATCH] base/utilities_pack_unpack_07: make test more robust --- tests/base/utilities_pack_unpack_07.cc | 7 +++---- .../utilities_pack_unpack_07.with_zlib=on.debug.output | 8 -------- ...utput => utilities_pack_unpack_07.with_zlib=on.output} | 2 +- .../utilities_pack_unpack_07.with_zlib=on.release.output2 | 8 -------- 4 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 tests/base/utilities_pack_unpack_07.with_zlib=on.debug.output rename tests/base/{utilities_pack_unpack_07.with_zlib=on.release.output => utilities_pack_unpack_07.with_zlib=on.output} (82%) delete mode 100644 tests/base/utilities_pack_unpack_07.with_zlib=on.release.output2 diff --git a/tests/base/utilities_pack_unpack_07.cc b/tests/base/utilities_pack_unpack_07.cc index 890176c4e9..b040175ab3 100644 --- a/tests/base/utilities_pack_unpack_07.cc +++ b/tests/base/utilities_pack_unpack_07.cc @@ -53,17 +53,16 @@ check(const double (&array)[N]) Utilities::pack(array, array_uncompressed, false); } - // computing_timer.print_summary(); - // check if compression has been invoked by comparing sizes deallog << "unpacked array: " << sizeof(array) << std::endl; deallog << "packed array without compression: " << array_uncompressed.size() << std::endl; + // set the lowest digit to 0: #ifdef DEAL_II_WITH_ZLIB - deallog << "packed array with compression: " << array_compressed.size() - << std::endl; + deallog << "packed array with compression: " + << (array_compressed.size() / 10) * 10 << std::endl; #endif } diff --git a/tests/base/utilities_pack_unpack_07.with_zlib=on.debug.output b/tests/base/utilities_pack_unpack_07.with_zlib=on.debug.output deleted file mode 100644 index 6c68b4bad0..0000000000 --- a/tests/base/utilities_pack_unpack_07.with_zlib=on.debug.output +++ /dev/null @@ -1,8 +0,0 @@ - -DEAL::unpacked array: 80000 -DEAL::packed array without compression: 80048 -DEAL::packed array with compression: 14697 -DEAL::unpacked array: 80000 -DEAL::packed array without compression: 80048 -DEAL::packed array with compression: 75558 -DEAL::OK! diff --git a/tests/base/utilities_pack_unpack_07.with_zlib=on.release.output b/tests/base/utilities_pack_unpack_07.with_zlib=on.output similarity index 82% rename from tests/base/utilities_pack_unpack_07.with_zlib=on.release.output rename to tests/base/utilities_pack_unpack_07.with_zlib=on.output index 5a74ae434e..2c8fd87631 100644 --- a/tests/base/utilities_pack_unpack_07.with_zlib=on.release.output +++ b/tests/base/utilities_pack_unpack_07.with_zlib=on.output @@ -1,7 +1,7 @@ DEAL::unpacked array: 80000 DEAL::packed array without compression: 80048 -DEAL::packed array with compression: 14697 +DEAL::packed array with compression: 14690 DEAL::unpacked array: 80000 DEAL::packed array without compression: 80048 DEAL::packed array with compression: 75550 diff --git a/tests/base/utilities_pack_unpack_07.with_zlib=on.release.output2 b/tests/base/utilities_pack_unpack_07.with_zlib=on.release.output2 deleted file mode 100644 index 6c68b4bad0..0000000000 --- a/tests/base/utilities_pack_unpack_07.with_zlib=on.release.output2 +++ /dev/null @@ -1,8 +0,0 @@ - -DEAL::unpacked array: 80000 -DEAL::packed array without compression: 80048 -DEAL::packed array with compression: 14697 -DEAL::unpacked array: 80000 -DEAL::packed array without compression: 80048 -DEAL::packed array with compression: 75558 -DEAL::OK! -- 2.39.5