Skip to content

Commit

Permalink
tests/fp/fp-test: Replace the word 'blacklist'
Browse files Browse the repository at this point in the history
Follow the inclusive terminology from the "Conscious Language in your
Open Source Projects" guidelines [*] and replace the word "blacklist"
appropriately.

[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md

Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210303184644.1639691-6-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
  • Loading branch information
philmd authored and vivier committed Mar 9, 2021
1 parent d42304b commit d5f8468
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/fp/fp-test.c
Expand Up @@ -123,7 +123,7 @@ static void not_implemented(void)
fprintf(stderr, "Not implemented.\n");
}

static bool blacklisted(unsigned op, int rmode)
static bool is_allowed(unsigned op, int rmode)
{
/* odd has not been implemented for any 80-bit ops */
if (rmode == softfloat_round_odd) {
Expand Down Expand Up @@ -161,10 +161,10 @@ static bool blacklisted(unsigned op, int rmode)
case F32_TO_EXTF80:
case F64_TO_EXTF80:
case F128_TO_EXTF80:
return true;
return false;
}
}
return false;
return true;
}

static void do_testfloat(int op, int rmode, bool exact)
Expand Down Expand Up @@ -194,7 +194,7 @@ static void do_testfloat(int op, int rmode, bool exact)
verCases_writeFunctionName(stderr);
fputs("\n", stderr);

if (blacklisted(op, rmode)) {
if (!is_allowed(op, rmode)) {
not_implemented();
return;
}
Expand Down

0 comments on commit d5f8468

Please sign in to comment.