X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests_valgrind.c;h=4b425ea23ba59d7baa3d689ddbbd58355596af8f;hb=a560351e7c4fc40039ba25ff5a48b0a6d7bf0c90;hp=9dd8247eb0774613e04b00142d8b7bd046965e00;hpb=6c69b9ba6b46ea0d15f90eb1649cbb2acf6a28de;p=ccan diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index 9dd8247e..4b425ea2 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -39,15 +39,6 @@ static void *do_run_tests_vg(struct manifest *m, struct run_tests_result *res; struct ccan_file *i; char *cmdout; - char *olddir; - - /* We run tests in the module directory, so any paths - * referenced can all be module-local. */ - olddir = talloc_getcwd(m); - if (!olddir) - err(1, "Could not save cwd"); - if (chdir(m->dir) != 0) - err(1, "Could not chdir to %s", m->dir); list_head_init(list); @@ -82,9 +73,6 @@ static void *do_run_tests_vg(struct manifest *m, list = NULL; } - if (chdir(olddir) != 0) - err(1, "Could not chdir to %s", olddir); - return list; }