Commit ad4ede91 by Patrick Steinhardt Committed by Edward Thomson

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.
parent 31f8f82a
......@@ -169,7 +169,7 @@ void test_core_posix__p_regcomp_ignores_global_locale_ctype(void)
cl_fail("Expected locale to be switched to multibyte");
}
p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
error = p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
p_regfree(&preg);
setlocale(LC_CTYPE, oldlocale);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment