compilerplugins/clang/test/dbgunhandledexception.cxx |    8 ++++++++
 compilerplugins/clang/test/sallogareas.cxx           |    8 ++++++++
 2 files changed, 16 insertions(+)

New commits:
commit 8d0b1406f8d18515a12a175636bbbaef09d98a33
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Tue Mar 17 11:55:20 2026 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Tue Mar 17 14:49:27 2026 +0100

    Some compilerplugin tests only work in --enable-sal-log builds
    
    Change-Id: Ia3435444fad68b33d45b21741c6e734f6b0bd09b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201897
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/compilerplugins/clang/test/dbgunhandledexception.cxx 
b/compilerplugins/clang/test/dbgunhandledexception.cxx
index 39206d4beaaa..cc58fa177877 100644
--- a/compilerplugins/clang/test/dbgunhandledexception.cxx
+++ b/compilerplugins/clang/test/dbgunhandledexception.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#if defined SAL_LOG_WARN
+
 #include <comphelper/diagnose_ex.hxx>
 #include <sal/log.hxx>
 
@@ -35,4 +37,10 @@ int main()
     }
 }
 
+#else
+
+// expected-no-diagnostics
+
+#endif
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/compilerplugins/clang/test/sallogareas.cxx 
b/compilerplugins/clang/test/sallogareas.cxx
index 8dd552b9faa6..a8de07a49186 100644
--- a/compilerplugins/clang/test/sallogareas.cxx
+++ b/compilerplugins/clang/test/sallogareas.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#if defined SAL_LOG_WARN
+
 #include <comphelper/diagnose_ex.hxx>
 #include <sal/log.hxx>
 
@@ -48,4 +50,10 @@ int main()
     }
 }
 
+#else
+
+// expected-no-diagnostics
+
+#endif
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */

Reply via email to