test: Rename test_get_state() to ut_get_state()
Rename this function and test_set_state() so use the same ut_ prefix as
other functions in ut.h
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/test/test-main.c b/test/test-main.c
index 8d76489..cfb3504 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -63,12 +63,12 @@
/* This is valid when a test is running, NULL otherwise */
static struct unit_test_state *cur_test_state;
-struct unit_test_state *test_get_state(void)
+struct unit_test_state *ut_get_state(void)
{
return cur_test_state;
}
-void test_set_state(struct unit_test_state *uts)
+void ut_set_state(struct unit_test_state *uts)
{
cur_test_state = uts;
}
@@ -466,7 +466,7 @@
printf("Test: %s: %s%s\n", test_name, fname, note);
/* Allow access to test state from drivers */
- test_set_state(uts);
+ ut_set_state(uts);
ret = test_pre_run(uts, test);
if (ret == -EAGAIN)
@@ -482,7 +482,7 @@
if (ret)
return ret;
- test_set_state( NULL);
+ ut_set_state(NULL);
return 0;
}