]> https://gitweb.dealii.org/ - dealii.git/commitdiff
base/utilities_pack_unpack_07: make test more robust
authorMatthias Maier <tamiko@43-1.org>
Wed, 6 May 2020 16:29:50 +0000 (11:29 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 6 May 2020 16:29:50 +0000 (11:29 -0500)
tests/base/utilities_pack_unpack_07.cc
tests/base/utilities_pack_unpack_07.with_zlib=on.debug.output [deleted file]
tests/base/utilities_pack_unpack_07.with_zlib=on.output [moved from tests/base/utilities_pack_unpack_07.with_zlib=on.release.output with 82% similarity]
tests/base/utilities_pack_unpack_07.with_zlib=on.release.output2 [deleted file]

index 890176c4e9ee34533d727188cb902b719ab280fd..b040175ab336afd19813ba1e57addb3c89900e1a 100644 (file)
@@ -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 (file)
index 6c68b4b..0000000
+++ /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!
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 5a74ae434eb6f7a80422d2642936ab90b53fc1a4..2c8fd87631611b621e7a5abba9ab2c784f2b2b22 100644 (file)
@@ -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 (file)
index 6c68b4b..0000000
+++ /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!

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.