test: Rename final check in setexpr_test_backref()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:19 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
The bug in setexpr is fixed now, so this test can be enabled.

Reported-by: Coverity (CID: 316346)
Signed-off-by: Simon Glass <sjg@chromium.org>
test/cmd/setexpr.c

index c537e89..08b6e6e 100644 (file)
@@ -270,8 +270,6 @@ static int setexpr_test_backref(struct unit_test_state *uts)
        ut_asserteq_str("us this is surely! a test is it? yes us this is indeed! a test",
                        buf);
 
-       /* The following checks fail at present due to a bug in setexpr */
-       return 0;
        for (i = BUF_SIZE; i < 0x1000; i++) {
                ut_assertf(buf[i] == (char)i,
                           "buf byte at %x should be %02x, got %02x)\n",