aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-20 18:22:48 -0600
committerTom Rini <trini@konsulko.com>2022-10-31 11:02:44 -0400
commit1facaadea1871c1b6962272dd21569a4aafda18c (patch)
tree2c90c6e6d2e27ab0cb609e6937062b90039872e6 /include
parentd2afb9edce0089f06d8f353cf88d8f5dec984914 (diff)
downloadu-boot-1facaadea1871c1b6962272dd21569a4aafda18c.zip
u-boot-1facaadea1871c1b6962272dd21569a4aafda18c.tar.gz
u-boot-1facaadea1871c1b6962272dd21569a4aafda18c.tar.bz2
test: Report skippped tests
At present it is possible for a test to skip itself by returning -EAGAIN but this is not recorded. An existing example is in test_pre_run() with the "Console recording disabled" check. Keep a track of skipped tests and report the total at the end. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/test/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/test/test.h b/include/test/test.h
index 3bbd77c..c1853ce 100644
--- a/include/test/test.h
+++ b/include/test/test.h
@@ -13,6 +13,7 @@
* struct unit_test_state - Entire state of test system
*
* @fail_count: Number of tests that failed
+ * @skip_count: Number of tests that were skipped
* @start: Store the starting mallinfo when doing leak test
* @of_live: true to use livetree if available, false to use flattree
* @of_root: Record of the livetree root node (used for setting up tests)
@@ -32,6 +33,7 @@
*/
struct unit_test_state {
int fail_count;
+ int skip_count;
struct mallinfo start;
struct device_node *of_root;
bool of_live;