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/virhostdevtest.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/virhostdevtest.c')
-rw-r--r-- | tests/virhostdevtest.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c index 0ad58ddf3d..54aa470968 100644 --- a/tests/virhostdevtest.c +++ b/tests/virhostdevtest.c @@ -38,15 +38,15 @@ VIR_LOG_INIT("tests.hostdevtest"); -# define CHECK_LIST_COUNT(list, cnt) \ - do { \ - size_t actualCount; \ - if ((actualCount = virPCIDeviceListCount(list)) != cnt) { \ - virReportError(VIR_ERR_INTERNAL_ERROR, \ - "Unexpected count of items in " #list ": %zu, " \ - "expecting %zu", actualCount, (size_t) cnt); \ - goto cleanup; \ - } \ +# define CHECK_LIST_COUNT(list, cnt) \ + do { \ + size_t actualCount; \ + if ((actualCount = virPCIDeviceListCount(list)) != cnt) { \ + virReportError(VIR_ERR_INTERNAL_ERROR, \ + "Unexpected count of items in " #list ": %zu, " \ + "expecting %zu", actualCount, (size_t) cnt); \ + goto cleanup; \ + } \ } while (0) # define TEST_STATE_DIR abs_builddir "/hostdevmgr" @@ -608,11 +608,11 @@ mymain(void) setenv("LIBVIRT_FAKE_ROOT_DIR", fakerootdir, 1); -# define DO_TEST(fnc) \ - do { \ - VIR_DEBUG("Testing: %s", #fnc); \ - if (virTestRun(#fnc, fnc, NULL) < 0) \ - ret = -1; \ +# define DO_TEST(fnc) \ + do { \ + VIR_DEBUG("Testing: %s", #fnc); \ + if (virTestRun(#fnc, fnc, NULL) < 0) \ + ret = -1; \ } while (0) if (myInit() < 0) |