aboutsummaryrefslogtreecommitdiff
path: root/include/test/ut.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/test/ut.h')
-rw-r--r--include/test/ut.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/test/ut.h b/include/test/ut.h
index e0e618b58c2..4d00b4eeca1 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -410,10 +410,15 @@ void test_set_state(struct unit_test_state *uts);
* then all tests are run
* @runs_per_test: Number of times to run each test (typically 1)
* @force_run: Run tests that are marked as manual-only (UT_TESTF_MANUAL)
+ * @test_insert: String describing a test to run after n other tests run, in the
+ * format n:name where n is the number of tests to run before this one and
+ * name is the name of the test to run. This is used to find which test causes
+ * another test to fail. If the one test fails, testing stops immediately.
+ * Pass NULL to disable this
* Return: 0 if all tests passed, -1 if any failed
*/
int ut_run_list(const char *name, const char *prefix, struct unit_test *tests,
int count, const char *select_name, int runs_per_test,
- bool force_run);
+ bool force_run, const char *test_insert);
#endif