diff options
author | Andrea Bolognani <abologna@redhat.com> | 2017-11-03 13:09:47 +0100 |
---|---|---|
committer | Andrea Bolognani <abologna@redhat.com> | 2017-11-03 13:24:12 +0100 |
commit | 3e7db8d3e8538bcd5deb1b111fb1233fc18831aa (patch) | |
tree | 33603505f2d95869500875a82cde7ebf847fe125 /tests/utiltest.c | |
parent | a92c4f7537577f1443ddd6fef4e0dfcb054e5f08 (diff) | |
download | libvirt-3e7db8d3e8538bcd5deb1b111fb1233fc18831aa.tar.gz |
Remove backslash alignment attempts
Right-aligning backslashes when defining macros or using complex
commands in Makefiles looks cute, but as soon as any changes is
required to the code you end up with either distractingly broken
alignment or unnecessarily big diffs where most of the changes
are just pushing all backslashes a few characters to one side.
Generated using
$ git grep -El '[[:blank:]][[:blank:]]\\$' | \
grep -E '*\.([chx]|am|mk)$$' | \
while read f; do \
sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
done
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Diffstat (limited to 'tests/utiltest.c')
-rw-r--r-- | tests/utiltest.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/utiltest.c b/tests/utiltest.c index f80329b30e..4479b0e0e0 100644 --- a/tests/utiltest.c +++ b/tests/utiltest.c @@ -228,12 +228,12 @@ testRoundValueToPowerOfTwo(const void *data ATTRIBUTE_UNUSED) } -#define TEST_OVERFLOW(var, val, expect) \ - tmp = val; \ - if (VIR_ASSIGN_IS_OVERFLOW(var, tmp) != expect) { \ - fprintf(stderr, "\noverflow check failed: " \ - "var: " #var " val: " #val "\n"); \ - return -1; \ +#define TEST_OVERFLOW(var, val, expect) \ + tmp = val; \ + if (VIR_ASSIGN_IS_OVERFLOW(var, tmp) != expect) { \ + fprintf(stderr, "\noverflow check failed: " \ + "var: " #var " val: " #val "\n"); \ + return -1; \ } static int @@ -266,12 +266,12 @@ mymain(void) virTestQuiesceLibvirtErrors(true); -#define DO_TEST(_name) \ - do { \ - if (virTestRun("Util "#_name, test##_name, \ - NULL) < 0) { \ - result = -1; \ - } \ +#define DO_TEST(_name) \ + do { \ + if (virTestRun("Util "#_name, test##_name, \ + NULL) < 0) { \ + result = -1; \ + } \ } while (0) DO_TEST(IndexToDiskName); |