Skip to contentSkip to conversation

ipe: Add missing terminator to list of unit tests

PATCH In review Guenter Roeck 3 participants 4 messages Sep 22, 2024 – Sep 23, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipe: Add missing terminator to list of unit tests

Add missing terminator to list of unit tests to avoid random crashes seen when running the test.

Fixes 10ca05a76065 ("ipe: kunit test for parser")
Cc Deven Bowers <[email protected]>
Cc Paul Moore <[email protected]>
Cc Fan Wu <[email protected]>
---
 security/ipe/policy_tests.c | 1 +
 1 file changed, 1 insertion(+)
security/ipe/policy_tests.c +1 -0
index 89521f6b9994..5f1654deeb04 100644
@@ -286,6 +286,7 @@ static void ipe_parser_widestring_test(struct kunit *test)
 static struct kunit_case ipe_parser_test_cases[] = {
 	KUNIT_CASE_PARAM(ipe_parser_unsigned_test, ipe_policies_gen_params),
 	KUNIT_CASE(ipe_parser_widestring_test),
+	{ }
 };
 
 static struct kunit_suite ipe_parser_test_suite = {
Signature · 1 line
2.45.2
maintainer
#1 lore raw
Quoted 4 lines · Guenter Roeck

Add missing terminator to list of unit tests to avoid random crashes seen when running the test.

Quoted 8 lines
Fixes 10ca05a76065 ("ipe: kunit test for parser")
Cc Deven Bowers <[email protected]>
Cc Paul Moore <[email protected]>
Cc Fan Wu <[email protected]>
---
 security/ipe/policy_tests.c | 1 +
 1 file changed, 1 insertion(+)

I'm guessing Fan doesn't have his tree setup yet, but if I can get an ACK from Fan I can send this up via the LSM tree for the next v6.12-rcX release.

Quoted 12 lines
security/ipe/policy_tests.c +1 -0
index 89521f6b9994..5f1654deeb04 100644
@@ -286,6 +286,7 @@ static void ipe_parser_widestring_test(struct kunit *test)
 static struct kunit_case ipe_parser_test_cases[] = {
        KUNIT_CASE_PARAM(ipe_parser_unsigned_test, ipe_policies_gen_params),
        KUNIT_CASE(ipe_parser_widestring_test),
+       { }
 };
 
 static struct kunit_suite ipe_parser_test_suite = {
Signature · 1 line
paul-moore.com
Acked-by
#2 lore raw
Quoted 29 lines · Paul Moore
Quoted 4 lines · Guenter Roeck

Add missing terminator to list of unit tests to avoid random crashes seen when running the test.

Quoted 8 lines
Fixes 10ca05a76065 ("ipe: kunit test for parser")
Cc Deven Bowers <[email protected]>
Cc Paul Moore <[email protected]>
Cc Fan Wu <[email protected]>
---
  security/ipe/policy_tests.c | 1 +
  1 file changed, 1 insertion(+)

I'm guessing Fan doesn't have his tree setup yet, but if I can get an ACK from Fan I can send this up via the LSM tree for the next v6.12-rcX release.

Quoted 11 lines
security/ipe/policy_tests.c +1 -0
index 89521f6b9994..5f1654deeb04 100644
@@ -286,6 +286,7 @@ static void ipe_parser_widestring_test(struct kunit *test)
  static struct kunit_case ipe_parser_test_cases[] = {
         KUNIT_CASE_PARAM(ipe_parser_unsigned_test, ipe_policies_gen_params),
         KUNIT_CASE(ipe_parser_widestring_test),
+       { }
  };
 
Quoted 2 lines

security/ipe/policy_tests.c static void ipe_parser_widestring_test(struct kunit *test) · line 292

Quoted 1 line
security/ipe/policy_tests.c +0 -0
  static struct kunit_suite ipe_parser_test_suite = {

Yes this looks good to me.

maintainer
#3 lore raw
In reply to Guenter Roeck
Quoted 10 lines · On Sep 22, 2024 Guenter Roeck <[email protected]> wrote:

Add missing terminator to list of unit tests to avoid random crashes seen when running the test.

Fixes 10ca05a76065 ("ipe: kunit test for parser")
Cc Deven Bowers <[email protected]>
Cc Paul Moore <[email protected]>
Cc Fan Wu <[email protected]>
Quoted 3 lines
---
 security/ipe/policy_tests.c | 1 +
 1 file changed, 1 insertion(+)

Thanks, merged into lsm/stable-6.12.

--
paul-moore.com