aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-26 10:51:50 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-26 10:51:50 +0200
commitdee1ba88a3e44665a5da822d5408708b150dcf51 (patch)
tree7df9661c627d5ff0b97b7670cbf3729edfa4aa33
parent3ba75420a6e29eb85a0bccd23ef7381e15e3efa9 (diff)
downloadv4l-utils-dee1ba88a3e44665a5da822d5408708b150dcf51.tar.gz
cec-compliance: improve error message
Rephrase error message to avoid the ugly: 'Expected no warnings, got 1 warnings' Now it says: 'Expected no warnings, but got 1' Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index 8da29f22..fb57d10b 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -1514,7 +1514,7 @@ void testRemote(struct node *node, unsigned me, unsigned la, unsigned test_tags,
result_name(mapTests[safename(name)], false),
result_name(ret, false));
else if (has_warnings && mapTestsNoWarnings[safename(name)])
- printf("\t %s: %s (Expected no warnings, got %d warnings)\n",
+ printf("\t %s: %s (Expected no warnings, but got %d)\n",
name, ok(FAIL), warnings - old_warnings);
else if (ret == FAIL)
printf("\t %s: %s\n", name, ok(OK_EXPECTED_FAIL));