summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-19 12:13:23 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit5a86caf19e625fce150d5c4330783c8d5732b27f (patch)
tree8b8b2d98b6151829dc706d01bdea46eec8404548 /src/test
parent206dc15a7a29cae1b42521812faf87e0888e07c0 (diff)
tree-wide: drop spurious newlines (#8764)
Double newlines (i.e. one empty lines) are great to structure code. But let's avoid triple newlines (i.e. two empty lines), quadruple newlines, quintuple newlines, …, that's just spurious whitespace. It's an easy way to drop 121 lines of code, and keeps the coding style of our sources a bit tigther.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-exec-util.c1
-rw-r--r--src/test/test-locale-util.c1
-rw-r--r--src/test/test-parse-util.c1
-rw-r--r--src/test/test-stat-util.c1
-rw-r--r--src/test/test-string-util.c1
5 files changed, 0 insertions, 5 deletions
diff --git a/src/test/test-exec-util.c b/src/test/test-exec-util.c
index 118720313..0138af7d8 100644
--- a/src/test/test-exec-util.c
+++ b/src/test/test-exec-util.c
@@ -236,7 +236,6 @@ const gather_stdout_callback_t gather_stdout[] = {
gather_stdout_three,
};
-
static void test_stdout_gathering(void) {
char template[] = "/tmp/test-exec-util.XXXXXXX";
const char *dirs[] = {template, NULL};
diff --git a/src/test/test-locale-util.c b/src/test/test-locale-util.c
index 5008630e0..d26e63346 100644
--- a/src/test/test-locale-util.c
+++ b/src/test/test-locale-util.c
@@ -5,7 +5,6 @@
Copyright 2014 Ronny Chevalier
***/
-
#include "locale-util.h"
#include "macro.h"
#include "strv.h"
diff --git a/src/test/test-parse-util.c b/src/test/test-parse-util.c
index 8209b98c3..e8c12710a 100644
--- a/src/test/test-parse-util.c
+++ b/src/test/test-parse-util.c
@@ -668,7 +668,6 @@ static void test_parse_nice(void) {
assert_se(parse_nice("19", &n) >= 0 && n == 19);
assert_se(parse_nice("+19", &n) >= 0 && n == 19);
-
assert_se(parse_nice("", &n) == -EINVAL);
assert_se(parse_nice("-", &n) == -EINVAL);
assert_se(parse_nice("+", &n) == -EINVAL);
diff --git a/src/test/test-stat-util.c b/src/test/test-stat-util.c
index d3a98ec66..3d8d911ac 100644
--- a/src/test/test-stat-util.c
+++ b/src/test/test-stat-util.c
@@ -49,7 +49,6 @@ static void test_is_symlink(void) {
assert_se(is_symlink(name_link) == 1);
assert_se(is_symlink("/a/file/which/does/not/exist/i/guess") < 0);
-
unlink(name);
unlink(name_link);
}
diff --git a/src/test/test-string-util.c b/src/test/test-string-util.c
index 48e418f48..97f8fde97 100644
--- a/src/test/test-string-util.c
+++ b/src/test/test-string-util.c
@@ -137,7 +137,6 @@ static void test_strrep(void) {
assert_se(streq(zero, ""));
}
-
static void test_strappend(void) {
_cleanup_free_ char *t1, *t2, *t3, *t4;