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.
diff --git a/tests/core/posix.c b/tests/core/posix.c
index 2812850..e8b81f8 100644
--- a/tests/core/posix.c
+++ b/tests/core/posix.c
@@ -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);