Git commit 10fcb1282908130ebb9d30d55eb524b458b38b3f by David Faure.
Committed on 02/01/2021 at 11:14.
Pushed by dfaure into branch 'master'.

autotests: skip tests that fail on FreeBSD for many years and nobody cares

Maybe it's just the tests that make too many Linux assumptions though,
so skipping them doesn't hide real bugs.

CCMAIL: [email protected], [email protected]

M  +8    -2    autotests/kptyprocesstest.cpp

https://invent.kde.org/frameworks/kpty/commit/10fcb1282908130ebb9d30d55eb524b458b38b3f

diff --git a/autotests/kptyprocesstest.cpp b/autotests/kptyprocesstest.cpp
index 98195dd..34fb271 100644
--- a/autotests/kptyprocesstest.cpp
+++ b/autotests/kptyprocesstest.cpp
@@ -112,6 +112,9 @@ void KPtyProcessTest::test_pty_basic()
         QSKIP("bash is not installed");
     }
 
+#ifdef Q_OS_FREEBSD
+    QSKIP("This test fails on FreeBSD for some reason (waitForReadyRead(5000) 
times out)");
+#endif
     KPtyProcess p;
     p.setProgram(bash, QStringList() << "-c" << "read -s VAL; echo \"1: 
$VAL\"; echo \"2: $VAL\" >&2");
     p.setPtyChannels(KPtyProcess::AllChannels);
@@ -203,14 +206,17 @@ void KPtyProcessTest::test_ctty()
 {
 #ifdef Q_OS_MAC
     QSKIP("This test currently hangs on OSX");
-#else
+#endif
+#ifdef Q_OS_FREEBSD
+    QSKIP("This test fails on FreeBSD for some reason (output is empty)");
+#endif
+
     KPtyProcess p;
     p.setShellCommand("echo this is a test > /dev/tty");
     p.execute(1000);
     p.pty()->waitForReadyRead(1000);
     QString output = p.pty()->readAll();
     QCOMPARE(output, QLatin1String("this is a test\r\n"));
-#endif
 }
 
 QTEST_MAIN(KPtyProcessTest)

Reply via email to