From 29e10815c6771c58fc9d9b93092ee954a4bd9e22 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 10 Sep 2010 12:35:37 +0930 Subject: [PATCH 1/1] ccanlint: don't run valgrind tests in test dir. We changed other tests to run in our tmpdir, missed this one. --- tools/ccanlint/tests/run_tests_valgrind.c | 12 ------------ 1 file changed, 12 deletions(-) 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; } -- 2.39.2