From 6128e5d58294f26411160f44da91087ebe7f4b07 Mon Sep 17 00:00:00 2001 From: Tezkerek Date: Thu, 9 Apr 2020 15:02:13 +0300 Subject: [CLI] On Unix, copy to clipboard using wl-clipboard if xclip is not available. --- tests/TestCli.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index 31e090bee..4ebc2f4e6 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -473,6 +473,10 @@ void TestCli::testClip() m_stdoutFile->reset(); QString errorOutput(m_stderrFile->readAll()); + if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) { + QSKIP("Clip test skipped due to QClipboard and Wayland issues"); + } + if (errorOutput.contains("Unable to start program") || errorOutput.contains("No program defined for clipboard manipulation")) { QSKIP("Clip test skipped due to missing clipboard tool"); -- cgit v1.2.3