Skip to contentSkip to conversation

selftests/mm: Drop duplicate test_seal_mprotect_two_vma_with_gap() call

PATCH Superseded Hongfu Li 3 participants 5 messages Aug 4

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Hongfu Li

author
#0 lore raw

PATCH 1/1 selftests/mm: Drop duplicate test_seal_mprotect_two_vma_with_gap() call

From: Hongfu Li <[email protected]>

mseal_test main() invokes test_seal_mprotect_two_vma_with_gap() twice. The second run repeats all assertions with no benefit. Drop the duplicate call.

---
 tools/testing/selftests/mm/mseal_test.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/mm/mseal_test.c +0 -1
index 93c2e13094d4..babc217d9dc9 100644
@@ -1913,7 +1913,6 @@ int main(void)
 	test_seal_mprotect_partial_mprotect(false);
 	test_seal_mprotect_partial_mprotect(true);
 
-	test_seal_mprotect_two_vma_with_gap();
 	test_seal_mprotect_two_vma_with_gap();
 
 	test_seal_mprotect_merge(false);
Signature · 1 line
2.54.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Hongfu Li

From: Hongfu Li <[email protected]>

mseal_test main() invokes test_seal_mprotect_two_vma_with_gap() twice. The second run repeats all assertions with no benefit. Drop the duplicate call.

:))

LGTM so

Quoted 17 lines
---
 tools/testing/selftests/mm/mseal_test.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/mm/mseal_test.c +0 -2
index 93c2e13094d4..babc217d9dc9 100644
@@ -1913,7 +1913,6 @@ int main(void)
 	test_seal_mprotect_partial_mprotect(false);
 	test_seal_mprotect_partial_mprotect(true);
 
-	test_seal_mprotect_two_vma_with_gap();
 	test_seal_mprotect_two_vma_with_gap();
 
 	test_seal_mprotect_merge(false);
--
Quoted 2 lines

2.54.0

--
Cheers, Lorenzo

#2 lore raw
Quoted 7 lines · Lorenzo Stoakes (ARM)
Quoted 6 lines · Hongfu Li

From: Hongfu Li <[email protected]>

mseal_test main() invokes test_seal_mprotect_two_vma_with_gap() twice. The second run repeats all assertions with no benefit. Drop the duplicate call.

Quoted 7 lines
Quoted 1 line

:))

LGTM so

Sorry Pedro mentioned off-list that you need to update the number of tests specified, e.g.:

- ksft_set_plan(88);
+ ksft_set_plan(87);

In main().

Update that and send a respin and you can attach my tag to it.

Quoted 16 lines
Quoted 16 lines
---
 tools/testing/selftests/mm/mseal_test.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/mm/mseal_test.c +0 -1
index 93c2e13094d4..babc217d9dc9 100644
@@ -1913,7 +1913,6 @@ int main(void)
 	test_seal_mprotect_partial_mprotect(false);
 	test_seal_mprotect_partial_mprotect(true);
 
-	test_seal_mprotect_two_vma_with_gap();
 	test_seal_mprotect_two_vma_with_gap();
 
Quoted 7 lines
Quoted 4 lines
tools/testing/selftests/mm/mseal_test.c +0 -1
 	test_seal_mprotect_merge(false);
--

2.54.0

--
Cheers, Lorenzo

--
Cheers, Lorenzo

author
#3 lore raw
Quoted 20 lines · Lorenzo Stoakes (ARM)
Quoted 7 lines · Lorenzo Stoakes (ARM)
Quoted 6 lines · Hongfu Li

From: Hongfu Li <[email protected]>

mseal_test main() invokes test_seal_mprotect_two_vma_with_gap() twice. The second run repeats all assertions with no benefit. Drop the duplicate call.

Quoted 6 lines
Quoted 1 line

:))

LGTM so

Sorry Pedro mentioned off-list that you need to update the number of tests specified, e.g.:

(quoted diff) +1 -1
-	ksft_set_plan(88);
+	ksft_set_plan(87);
Quoted 3 lines

In main().

Update that and send a respin and you can attach my tag to it.

Thanks a lot for your review. I will adjust ksft_set_plan() from 88 to 87 in main() and send a respin carrying your Reviewed-by.

Signature · 2 lines
Best regards,
Hongfu
maintainer Acked-by
#4 lore raw
Quoted 11 lines · Hongfu Li
Quoted 9 lines · Lorenzo Stoakes (ARM)
Quoted 5 lines · Lorenzo Stoakes (ARM)

:))

LGTM so

Sorry Pedro mentioned off-list that you need to update the number of tests specified, e.g.:

Quoted 9 lines
Quoted 6 lines

-    ksft_set_plan(88);
+    ksft_set_plan(87);

In main().

Update that and send a respin and you can attach my tag to it.

Thanks a lot for your review. I will adjust ksft_set_plan() from 88 to 87 in main() and send a respin carrying your Reviewed-by.

Feel free to add

to the respin.

Signature · 3 lines
Cheers,

David