From: Matthias Maier Date: Wed, 6 May 2020 16:29:50 +0000 (-0500) Subject: base/utilities_pack_unpack_07: make test more robust X-Git-Tag: v9.2.0-rc1~110^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0991f9c44859de82b280daf8611b731a051acf37;p=dealii.git base/utilities_pack_unpack_07: make test more robust --- 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!