summaryrefslogtreecommitdiff
path: root/tests/virbitmaptest.c
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2017-11-03 13:09:47 +0100
committerAndrea Bolognani <abologna@redhat.com>2017-11-03 13:24:12 +0100
commit3e7db8d3e8538bcd5deb1b111fb1233fc18831aa (patch)
tree33603505f2d95869500875a82cde7ebf847fe125 /tests/virbitmaptest.c
parenta92c4f7537577f1443ddd6fef4e0dfcb054e5f08 (diff)
downloadlibvirt-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/virbitmaptest.c')
-rw-r--r--tests/virbitmaptest.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index 76005117e7..c24d4a72f7 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -608,24 +608,24 @@ test11(const void *opaque)
return ret;
}
-#define TEST_MAP(sz, expect) \
- do { \
- char *actual; \
- if (virBitmapSize(map) != sz) { \
- fprintf(stderr, "\n expected bitmap size: '%d' actual size: " \
- "'%zu'\n", sz, virBitmapSize(map)); \
- goto cleanup; \
- } \
- \
- actual = virBitmapFormat(map); \
- \
- if (STRNEQ_NULLABLE(expect, actual)) { \
+#define TEST_MAP(sz, expect) \
+ do { \
+ char *actual; \
+ if (virBitmapSize(map) != sz) { \
+ fprintf(stderr, "\n expected bitmap size: '%d' actual size: " \
+ "'%zu'\n", sz, virBitmapSize(map)); \
+ goto cleanup; \
+ } \
+ \
+ actual = virBitmapFormat(map); \
+ \
+ if (STRNEQ_NULLABLE(expect, actual)) { \
fprintf(stderr, "\n expected bitmap contents '%s' actual contents "\
- "'%s'\n", NULLSTR(expect), NULLSTR(actual)); \
- VIR_FREE(actual); \
- goto cleanup; \
- } \
- VIR_FREE(actual); \
+ "'%s'\n", NULLSTR(expect), NULLSTR(actual)); \
+ VIR_FREE(actual); \
+ goto cleanup; \
+ } \
+ VIR_FREE(actual); \
} while (0)
/* test self-expanding bitmap APIs */
@@ -666,11 +666,11 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
#undef TEST_MAP
-#define TESTBINARYOP(A, B, RES, FUNC) \
- testBinaryOpData.a = A; \
- testBinaryOpData.b = B; \
- testBinaryOpData.res = RES; \
- if (virTestRun(virTestCounterNext(), FUNC, &testBinaryOpData) < 0) \
+#define TESTBINARYOP(A, B, RES, FUNC) \
+ testBinaryOpData.a = A; \
+ testBinaryOpData.b = B; \
+ testBinaryOpData.res = RES; \
+ if (virTestRun(virTestCounterNext(), FUNC, &testBinaryOpData) < 0) \
ret = -1;
static int