proc: test lseek on /proc/net/dev

This line in tools/testing/selftests/proc/read.c was added to catch
oopses, not to verify lseek correctness:

        (void)lseek(fd, 0, SEEK_SET);

Oh, well. Prevent more embarassement with simple test.

Link: https://lkml.kernel.org/r/aKTCfMuRXOpjBXxI@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan
2025-08-19 21:19:17 +03:00
committed by Andrew Morton
parent 6c609f3639
commit b1e3441299
3 changed files with 70 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
/proc-loadavg-001
/proc-maps-race
/proc-multiple-procfs
/proc-net-dev-lseek
/proc-empty-vm
/proc-pid-vm
/proc-self-map-files-001