Skip to contentSkip to conversation

Delete fork09 test

PATCH In review Andrea Cervesato 5 participants 6 messages Nov 20, 2023 – Mar 12, 2024

lore
Share & tools
lore
#0 lore raw

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
index c98992d44..430d32e6a 100644
@@ -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
index 55e30edb4..6a55df765 100644
@@ -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
#1 lore raw

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
#2 lore raw

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
#3 lore raw
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
#4 lore raw
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
#5 lore raw

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