summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-02-18 03:56:21 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-02-18 03:56:21 -0200
commit050db08c57c10cb964d337c5668c4dce309b8d41 (patch)
tree174a17404f80ad6e3f269cf0728c2e703ea3eeac /testsuite
parentadca3cd203933f51d9af47b0aa548466687bd48e (diff)
downloadkmod-050db08c57c10cb964d337c5668c4dce309b8d41.tar.gz
kmod-050db08c57c10cb964d337c5668c4dce309b8d41.tar.bz2
kmod-050db08c57c10cb964d337c5668c4dce309b8d41.zip
Add missing newlines
Checked with following semantic patch for the library: // smpl @a@ identifier virtual.func; expression E1; expression fmt; position p1; @@ func(E1, fmt@p1, ...) @script:python b@ fmt << a.fmt; p1 << a.p1; @@ s = str(fmt) if s.find("\\n") < 0: print p1[0].file + ":" + p1[0].line // smpl For tools, just remove E1
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/testsuite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c
index c330e4c..9efe8de 100644
--- a/testsuite/testsuite.c
+++ b/testsuite/testsuite.c
@@ -205,7 +205,7 @@ static inline int test_run_child(const struct test *t, int fdout[2],
if (t->output.stdout != NULL) {
close(fdout[0]);
if (dup2(fdout[1], STDOUT_FILENO) < 0) {
- ERR("could not redirect stdout to pipe: %m");
+ ERR("could not redirect stdout to pipe: %m\n");
exit(EXIT_FAILURE);
}
}
@@ -213,7 +213,7 @@ static inline int test_run_child(const struct test *t, int fdout[2],
if (t->output.stderr != NULL) {
close(fderr[0]);
if (dup2(fderr[1], STDERR_FILENO) < 0) {
- ERR("could not redirect stdout to pipe: %m");
+ ERR("could not redirect stdout to pipe: %m\n");
exit(EXIT_FAILURE);
}
}
@@ -458,7 +458,7 @@ static int prepend_path(const char *extra)
return setenv("PATH", extra, 1);
if (asprintf(&newpath, "%s:%s", extra, oldpath) < 0) {
- ERR("failed to allocate memory to new PATH");
+ ERR("failed to allocate memory to new PATH\n");
return -1;
}