test-path-util,test-sched-prio: uninitialize manager to appease valgrind

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-07-12 13:24:06 -04:00
parent e819355492
commit b463b81399
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ static void test_path(void) {
assert_se(streq(path_get_file_name("file.../"), ""));
#define test_parent(x, y) { \
char *z; \
char _cleanup_free_ *z = NULL; \
int r = path_get_parent(x, &z); \
printf("expected: %s\n", y ? y : "error"); \
printf("actual: %s\n", r<0 ? "error" : z); \
+2
View File
@@ -88,5 +88,7 @@ int main(int argc, char *argv[]) {
assert_se(ser->exec_context.cpu_sched_policy == SCHED_RR);
assert_se(ser->exec_context.cpu_sched_priority == 99);
manager_free(m);
return EXIT_SUCCESS;
}
+2
View File
@@ -190,6 +190,8 @@ static int test_unit_printf(void) {
expect(u2, "%H", host);
expect(u2, "%t", "/run/user/*");
manager_free(m);
return 0;
}