]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Suppress some messages when normalizing test output. 16900/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 17 Apr 2024 19:54:52 +0000 (13:54 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 17 Apr 2024 19:54:52 +0000 (13:54 -0600)
cmake/scripts/normalize.pl

index 9caf2791f3a03b5ff59388e0be4c47249d66564a..ae5000e20629d22466daffb9c42428b2f5bcd318 100644 (file)
@@ -100,3 +100,20 @@ s/.*<PDataArray type.*(mpirank|level).*\n//g;
 #     {
 #
 s/^(\s*)(".*":) \{$/\1\2\n\1\{/;
+
+
+#
+# Some of the dependency libraries use the X protocol and want to communicate
+# with the X server of the system from which the terminal was opened. This
+# requires privileges that the owner of the system may not have provided, and
+# one then gets warning messages that clutter the test output.
+#
+# Because these dependency libraries do not (and should not) actually do on the
+# user's screen, these warnings are entirely harmless, but they break the
+# tests on which these messages appear.
+#
+if (m/Authorization required, but no authorization protocol specified/)
+{
+    <>;
+    $_ = "";
+}

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.