{"id":14852,"url":"https://patchwork.libcamera.org/api/1.1/covers/14852/?format=json","web_url":"https://patchwork.libcamera.org/cover/14852/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20211130012303.10574-1-laurent.pinchart@ideasonboard.com>","date":"2021-11-30T01:23:01","name":"[libcamera-devel,v1,0/2] libcamera: Fix valgrind usage with tests that fork process","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/14852/mbox/","series":[{"id":2775,"url":"https://patchwork.libcamera.org/api/1.1/series/2775/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2775","date":"2021-11-30T01:23:01","name":"libcamera: Fix valgrind usage with tests that fork process","version":1,"mbox":"https://patchwork.libcamera.org/series/2775/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14852/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id F3DD2BDB13\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 30 Nov 2021 01:23:35 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3D487605B4;\n\tTue, 30 Nov 2021 02:23:35 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1CCFF604FC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 30 Nov 2021 02:23:33 +0100 (CET)","from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 903AB93\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 30 Nov 2021 02:23:32 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"pSanqqyq\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1638235412;\n\tbh=cniiac8Qikhe8alMOotAoAUAEK6T3QsZct63eS5cwu4=;\n\th=From:To:Subject:Date:From;\n\tb=pSanqqyqn53J9tKwUMS3dBT900jesZT9WTWIFbYYvXZnJkDL4AcNw2Up4E8m8vybl\n\t05qv4ndOgW7SeOJpadb2ZKrjPVw8zAT2uXGj+jYTHw9o2fuhjgZtTabFHzp8uInerf\n\ts7L8kCj2c8gE3jLGcUK81An1VANi0ytiRs8uR3aE=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 30 Nov 2021 03:23:01 +0200","Message-Id":"<20211130012303.10574-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.32.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 0/2] libcamera: Fix valgrind usage with\n\ttests that fork process","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis small seris fixes unit tests to enable running tests that fork a\nprocess under valgrind.\n\nThe issue is that those tests attempt to fork and exec themselves\nthrough /proc/self/exe. While this works in normal circumstances, when\nrun under valgrind /proc/self/exe is valgrind itself, not the test\nbinary. \n\nLaurent Pinchart (2):\n  test: Store path to the test executable in Test class\n  test: Replace \"/proc/self/exe\" with path to test binary\n\n test/file.cpp                 |  4 ++--\n test/ipc/unixsocket.cpp       |  9 +++++----\n test/ipc/unixsocket_ipc.cpp   |  6 ++++--\n test/libtest/test.cpp         |  5 +++++\n test/libtest/test.h           | 15 ++++++++++++---\n test/log/log_process.cpp      |  6 ++++--\n test/process/process_test.cpp |  7 ++++---\n 7 files changed, 36 insertions(+), 16 deletions(-)\n\n\nbase-commit: 8178e01b36d767e05d7bbb9dd1f752f7ede0db3d"}