summaryrefslogtreecommitdiff
path: root/common/test_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/test_util.c')
-rw-r--r--common/test_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/test_util.c b/common/test_util.c
index 6ad1474700..0fc6306c70 100644
--- a/common/test_util.c
+++ b/common/test_util.c
@@ -29,7 +29,7 @@ struct test_util_tag {
int __test_error_count;
/* Weak reference function as an entry point for unit test */
-test_mockable void run_test(void) { }
+test_mockable void run_test(int argc, char **argv) { }
/* Default dummy test init */
test_mockable void test_init(void) { }
@@ -199,7 +199,7 @@ DECLARE_HOOK(HOOK_SYSJUMP, preserve_state, HOOK_PRIO_DEFAULT);
static int command_run_test(int argc, char **argv)
{
- run_test();
+ run_test(argc, argv);
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(runtest, command_run_test,