summaryrefslogtreecommitdiff
path: root/tests/test-io-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-task.c')
-rw-r--r--tests/test-io-task.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test-io-task.c b/tests/test-io-task.c
index e091c12e1..5a9775086 100644
--- a/tests/test-io-task.c
+++ b/tests/test-io-task.c
@@ -19,6 +19,7 @@
*/
#include "qemu/osdep.h"
+#include <glib.h>
#include "io/task.h"
#include "qapi/error.h"
@@ -110,7 +111,7 @@ static void test_task_data_free(void)
}
-static void test_task_failure(void)
+static void test_task_error(void)
{
QIOTask *task;
Object *obj = object_new(TYPE_DUMMY);
@@ -214,7 +215,7 @@ static void test_task_thread_complete(void)
}
-static void test_task_thread_failure(void)
+static void test_task_thread_error(void)
{
QIOTask *task;
Object *obj = object_new(TYPE_DUMMY);
@@ -262,8 +263,8 @@ int main(int argc, char **argv)
type_register_static(&dummy_info);
g_test_add_func("/crypto/task/complete", test_task_complete);
g_test_add_func("/crypto/task/datafree", test_task_data_free);
- g_test_add_func("/crypto/task/failure", test_task_failure);
+ g_test_add_func("/crypto/task/error", test_task_error);
g_test_add_func("/crypto/task/thread_complete", test_task_thread_complete);
- g_test_add_func("/crypto/task/thread_failure", test_task_thread_failure);
+ g_test_add_func("/crypto/task/thread_error", test_task_thread_error);
return g_test_run();
}