Commit ad4ede91e96b810e7d792c7ca47d8f5321caef9a

Patrick Steinhardt 2018-03-02T13:51:57

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
2
3
4
5
6
7
8
9
10
11
12
13
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);