diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-02-07 09:27:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-07 09:35:41 +0100 |
commit | fb069fb87df4f767635a3d5688f1933b2433418c (patch) | |
tree | 937978157f114a8f03a3dd6a1506346c72dc54ce /test | |
parent | bfa76583c12407d9ef8cf59e02b95297ec19f845 (diff) | |
download | barebox-fb069fb87df4f767635a3d5688f1933b2433418c.tar.gz barebox-fb069fb87df4f767635a3d5688f1933b2433418c.tar.xz |
test: self: printf: log skipped tests
Report number of skipped tests as well as skip reason.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220207082801.1052894-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/self/printf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/self/printf.c b/test/self/printf.c index 52fe6ac0fa..ec74df32ee 100644 --- a/test/self/printf.c +++ b/test/self/printf.c @@ -247,8 +247,11 @@ uuid(void) const char uuid[16] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}; - if (!IS_ENABLED(CONFIG_PRINTF_UUID)) + if (!IS_ENABLED(CONFIG_PRINTF_UUID)) { + pr_info("skipping UUID tests: disabled in config\n"); + skipped_tests += 4; return; + } test("00010203-0405-0607-0809-0a0b0c0d0e0f", "%pUb", uuid); test("00010203-0405-0607-0809-0A0B0C0D0E0F", "%pUB", uuid); @@ -265,8 +268,11 @@ errptr(void) /* Check that %pe with a non-ERR_PTR gets treated as ordinary %p. */ BUILD_BUG_ON(IS_ERR(PTR)); - if (!IS_ENABLED(CONFIG_ERRNO_MESSAGES)) + if (!IS_ENABLED(CONFIG_ERRNO_MESSAGES)) { + pr_info("skipping errno messages tests: disabled in config\n"); + skipped_tests += 2; return; + } test("(Operation not permitted)", "(%pe)", ERR_PTR(-EPERM)); test("Requested probe deferral", "%pe", ERR_PTR(-EPROBE_DEFER)); } |