mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -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
@@ -10,6 +10,7 @@ TEST_GEN_PROGS += fd-003-kthread
|
||||
TEST_GEN_PROGS += proc-2-is-kthread
|
||||
TEST_GEN_PROGS += proc-loadavg-001
|
||||
TEST_GEN_PROGS += proc-maps-race
|
||||
TEST_GEN_PROGS += proc-net-dev-lseek
|
||||
TEST_GEN_PROGS += proc-empty-vm
|
||||
TEST_GEN_PROGS += proc-pid-vm
|
||||
TEST_GEN_PROGS += proc-self-map-files-001
|
||||
|
||||
Reference in New Issue
Block a user