build.kde.org and `ping`

David Faure faure at kde.org
Sat Nov 2 23:27:27 UTC 2013


This error:
http://build.kde.org/job/kdelibs_stable/886/testReport/(root)/TestSuite/kptyprocesstest/

is caused by this:

jenkins at slave1:/srv/jenkins/workspace/kdelibs_master/build> ping -i 0.5 localhost
ping: icmp open socket: Operation not permitted

because the code is doing exactly this:

void KPtyProcessTest::test_suspend_pty()
{
    KPtyProcess p;
    p.setPtyChannels(KPtyProcess::AllChannels);
    p.setProgram("ping", QStringList() << "-i" << "0.5" << "localhost");
    p.start();

    // verify that data is available to read from the pty
    QVERIFY(p.pty()->waitForReadyRead(1500));
[...]


Should we
1) change build.kde.org's setup to allow running ping?
2) write a helper program to replace ping? [sounds like the correct solution, but
  needs a volunteer, since this kpty stuff isn't really maintained anymore]
3) skip the test when that first check fails?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list