mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
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:
committed by
Andrew Morton
parent
6c609f3639
commit
b1e3441299
1
tools/testing/selftests/proc/.gitignore
vendored
1
tools/testing/selftests/proc/.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user