Re: [PATCH bpf v4 2/2] selftests/bpf: add regression test for bpf_d_path()

From: Song Liu

Date: Thu Dec 04 2025 - 18:47:27 EST


On Thu, Dec 4, 2025 at 4:39 AM Shuran Liu <electronlsr@xxxxxxxxx> wrote:
>
> Hi,
>
> I looked into the CI failure and it’s caused by the test assuming
> /tmp is on tmpfs, which is not true in the CI environment, so
> fallocate() fails there. Since /dev/shm is mounted as tmpfs on that
> setup, would it be acceptable to change the test to use a file under
> /dev/shm instead of /tmp?

You can use mkstemp. There are a few examples in prog_tests.

Thanks,
Song