From: Jérémie Galarneau Date: Thu, 10 Feb 2022 16:59:31 +0000 (-0500) Subject: Tests: fix: select_poll_epoll: test assumes epoll fd value X-Git-Tag: v2.13.5~57 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=2af9cd67cd3e2f8021559d01dd21c44a4844a27e;hp=2af9cd67cd3e2f8021559d01dd21c44a4844a27e;p=lttng-tools.git Tests: fix: select_poll_epoll: test assumes epoll fd value The test currently assumes that epoll fds are always == 3, which is not always the case depending on the execution environment. This change causes `select_poll_epoll` to produce a JSON file containing the application's pid and epoll fd values that is then used by the validation script. Note that the test is converted to C++ to allow the use of internal utils (common/error.h/cpp) without changing their linkage. However, the code is still regular C to ease the backport of this fix. Signed-off-by: Jérémie Galarneau Change-Id: Ie373c63f6e6b9267ae2d785c9f0a532a5de37905 ---