Skip to content

Commit 21ea9ee

Browse files
committed
tests: runtime: Avoid hang on fstat64() on 9pfs
vmtest uses 9pfs under the hood. But danobi/vmtest#88 switches the FS to virtiofs which should be more reliable with stuff like this. So for now, disable this test on 9pfs rootfs.
1 parent 271b3e8 commit 21ea9ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/runtime/usdt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ RUN {{BPFTRACE}} -e 'usdt:*:tracetest:testprobe { printf("here\n" ); exit(); }'
7474
EXPECT here
7575
BEFORE ./testprogs/usdt_test
7676
NEW_PIDNS
77+
# On 9pfs, is_elf() hangs on a syscall to fstat64. We suspect it's
78+
# a bug with 9pfs. https://github.com/danobi/vmtest/pull/88 should help
79+
# when it lands. So for now, don't run this test on 9pfs.
80+
REQUIRES findmnt -n / | awk '{exit $3!="9pfs"}'
7781

7882
NAME usdt probes - attach to fully specified library probe by pid
7983
RUN {{BPFTRACE}} -e 'usdt:./testlibs/libusdt_tp.so:tracetestlib:lib_probe_1 { printf("here\n" ); exit(); }' -p $(pidof usdt_lib)

0 commit comments

Comments
 (0)