]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/run_tests.c
ccanlint: use up to three -v to mean more verbosity.
[ccan] / tools / ccanlint / compulsory_tests / run_tests.c
index 9f1f4a4a21723f21a1bf96408e83c6e4f8ad305d..e2ab9226964e4287ca4ba61289e56292f1f6b515 100644 (file)
@@ -35,15 +35,6 @@ static void *do_run_tests(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);
 
@@ -74,9 +65,6 @@ static void *do_run_tests(struct manifest *m,
                list = NULL;
        }
 
-       if (chdir(olddir) != 0)
-               err(1, "Could not chdir to %s", olddir);
-
        return list;
 }