exterr_test: loosen the error string pattern

After addition of the prot and max_prot values, the old error substring
no longer satisfy the check.

Reviewed by:	emaste, mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54380
This commit is contained in:
Konstantin Belousov
2025-12-28 05:35:03 +02:00
parent 14bd57d0a7
commit 543c86636f
+1 -1
View File
@@ -51,7 +51,7 @@ ATF_TC_BODY(gettext_extended, tc)
ATF_CHECK_EQ(0, r);
printf("Extended error: %s\n", exterr);
/* Note: error string may need to be updated due to kernel changes */
ATF_CHECK(strstr(exterr, "prot is not subset of max_prot") != 0);
ATF_CHECK(strstr(exterr, " is not subset of ") != 0);
}
ATF_TC(gettext_noextended);