diff options
author | Thomas Huth <thuth@redhat.com> | 2020-09-12 09:43:07 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-09-16 08:41:06 +0200 |
commit | d97b4b0d0c2313c567e88ef492f132d3e0c8df8f (patch) | |
tree | d6bfff53dfb17d05bcf4499dad278d680c2f8f10 /tests/qtest/qmp-cmd-test.c | |
parent | d287961f25672d94a38dfdd03d1daa7e3d343c3c (diff) | |
download | qemu-d97b4b0d0c2313c567e88ef492f132d3e0c8df8f.zip qemu-d97b4b0d0c2313c567e88ef492f132d3e0c8df8f.tar.gz qemu-d97b4b0d0c2313c567e88ef492f132d3e0c8df8f.tar.bz2 |
tests/qtest/qmp-cmd-test: Use inclusive language
We simply want to ignore certain queries here, so let's rather
use the term 'ignore' to express this intention.
Message-Id: <20200914163755.42618-1-thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/qmp-cmd-test.c')
-rw-r--r-- | tests/qtest/qmp-cmd-test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c index 3109a9f..8a4c570 100644 --- a/tests/qtest/qmp-cmd-test.c +++ b/tests/qtest/qmp-cmd-test.c @@ -82,9 +82,9 @@ static void test_query(const void *data) qtest_quit(qts); } -static bool query_is_blacklisted(const char *cmd) +static bool query_is_ignored(const char *cmd) { - const char *blacklist[] = { + const char *ignored[] = { /* Not actually queries: */ "add-fd", /* Success depends on target arch: */ @@ -101,8 +101,8 @@ static bool query_is_blacklisted(const char *cmd) }; int i; - for (i = 0; blacklist[i]; i++) { - if (!strcmp(cmd, blacklist[i])) { + for (i = 0; ignored[i]; i++) { + if (!strcmp(cmd, ignored[i])) { return true; } } @@ -179,7 +179,7 @@ static void add_query_tests(QmpSchema *schema) continue; } - if (query_is_blacklisted(si->name)) { + if (query_is_ignored(si->name)) { continue; } |