Skip to content

Commit ad4ede9

Browse files
pks-tethomson
authored andcommitted
tests: fix p_regcomp test not checking return type
While the test asserts that the error value indcates a non-value, it is actually never getting assigned to. Fix this.
1 parent 31f8f82 commit ad4ede9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void test_core_posix__p_regcomp_ignores_global_locale_ctype(void)
169169
cl_fail("Expected locale to be switched to multibyte");
170170
}
171171

172-
p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
172+
error = p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
173173
p_regfree(&preg);
174174

175175
setlocale(LC_CTYPE, oldlocale);

0 commit comments

Comments
 (0)