Delete fork09 test
PATCH 1/1 Delete fork09 test
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.
--- runtest/syscalls | 1 - testcases/kernel/syscalls/fork/.gitignore | 1 - testcases/kernel/syscalls/fork/fork09.c | 172 ---------------------- 3 files changed, 174 deletions(-) delete mode 100644 testcases/kernel/syscalls/fork/fork09.c
runtest/syscalls +0 -1
@@ -383,7 +383,6 @@ fork05 fork05 fork06 fork_procs -n 1000 fork07 fork07 fork08 fork08 -fork09 fork09 fork10 fork10 fork11 fork_procs -n 100 fork13 fork13
testcases/kernel/syscalls/fork/.gitignore +0 -1
@@ -4,7 +4,6 @@ /fork05 /fork07 /fork08 -/fork09 /fork10 /fork12 /fork13
testcases/kernel/syscalls/fork/fork09.c deleted +0 -172
172 lines not on this page · raw message
Signature · 5 lines
2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
Quoted 5 lines
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.
in fork09 parent opens maximum number of files, child closes one and attempts to open another. That is not exactly the same, but it's very similar.
I'm not sure if the scenario would really tests different code path in kernel/libc or not and we can happily delete it.
Cyril, WDYT?
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi all,
Quoted 8 lines · Petr Vorel
Hi Andrea,
Quoted 5 lines
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.
Quoted 6 lines
in fork09 parent opens maximum number of files, child closes one and attempts to open another. That is not exactly the same, but it's very similar.
I'm not sure if the scenario would really tests different code path in kernel/libc or not and we can happily delete it.
Cyril, WDYT?
@Li, WDYT?
Quoted 3 lines
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 15 lines · pvorel
Hi all,
Quoted 12 lines · Petr Vorel
Hi Andrea,
Quoted 5 lines
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.in fork09 parent opens maximum number of files, child closes one and attempts to
open another. That is not exactly the same, but it's very similar.
Quoted 6 lines
Quoted 3 lines
I'm not sure if the scenario would really tests different code path in kernel/libc or not and we can happily delete it.
Cyril, WDYT?@Li, WDYT?
Petr, I think you're right, they're not the same test.
In fork10 parent tries to verify the contents of the file that reset the file offset pointer by child.
But for09 is a bounder test to verify if the child can open one more file when 'fd' number approaches (OpenMax-1).
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 24 lines · pvorel
Quoted 16 lines
Hi all,
Quoted 11 lines · Petr Vorel
Hi Andrea,
Quoted 5 lines
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.in fork09 parent opens maximum number of files, child closes one and attempts to
open another. That is not exactly the same, but it's very similar.Quoted 5 lines
Quoted 3 lines
I'm not sure if the scenario would really tests different code path in kernel/libc or not and we can happily delete it.
Cyril, WDYT?@Li, WDYT?
Quoted 7 lines
Petr, I think you're right, they're not the same test.
In fork10 parent tries to verify the contents of the file that reset the file offset pointer by child.
But for09 is a bounder test to verify if the child can open one more file when 'fd' number approaches (OpenMax-1).
Thank you! Closing this as rejected, Andrea feel free to rewrite the test as well.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Quoted 16 lines · Petr Vorel
Quoted 15 lines · pvorel
Quoted 14 lines
Hi all,
Quoted 11 lines · Petr Vorel
Hi Andrea,
Quoted 4 lines
From: Andrea Cervesato <[email protected]>
The fork09 test is actually testing what fork10 is already testing:
accessing an open child's file from parent. For this reason, we delete it and let fork10 doing its job.in fork09 parent opens maximum number of files, child closes one and attempts to
open another. That is not exactly the same, but it's very similar. I'm not sure if the scenario would really tests different code path in kernel/libc or not and we can happily delete it.
Cyril, WDYT?@Li, WDYT?
Quoted 7 lines
Quoted 5 lines
Petr, I think you're right, they're not the same test.
In fork10 parent tries to verify the contents of the file that reset the file offset pointer by child.
But for09 is a bounder test to verify if the child can open one more file when 'fd' number approaches (OpenMax-1).Thank you! Closing this as rejected, Andrea feel free to rewrite the test as well.
The reason why this test should be deleted is contained in the following discussion, but I can rewrite it if it's strictly necessary.
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/
Quoted 2 lines
Kind regards,
Petr
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp