ANDROID: GKI: Return ERROR value on KUnit load fail

Return ERROR define EPERM instead of -1 on load fail.

Bug: 231160619
Signed-off-by: Joe Fradley <joefradley@google.com>
Change-Id: Iac72e867401cb67b42120e0aed612e89ba68460e
This commit is contained in:
Joe Fradley
2022-05-10 20:25:29 +00:00
parent 7e629d2241
commit 39f5348cf7

View File

@@ -578,7 +578,7 @@ int __kunit_test_suites_init(struct kunit_suite * const * const suites)
if (!enable_param) {
pr_info("kunit: deactivated, cannot load %s\n",
suites != NULL ? suites[0]->name : "NULL");
return -1;
return -EPERM;
}
for (i = 0; suites[i] != NULL; i++) {