aboutsummaryrefslogtreecommitdiff
path: root/tests/test-io-task.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-08-04 11:39:38 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-08-05 15:27:15 +0100
commit51009170d8fc263cfdcd5a60fe3ba213daa3d15b (patch)
tree4b791d788de0a3de93f9127bcd0ecb8a8b579c8a /tests/test-io-task.c
parentc025f689a13d1301b277ee4a0914e90810982d24 (diff)
tests: Rename qtests which have names ending "error"
We have three qtest tests which have test names ending with "error". This is awkward because the output of verbose test runs looks like /crypto/task/error: OK /crypto/task/thread_error: OK which gives false positives if you are grepping build logs for errors by looking for "error:". Since there are only three tests with this problem, just rename them all to 'failure' instead. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1470307178-22848-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'tests/test-io-task.c')
-rw-r--r--tests/test-io-task.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-io-task.c b/tests/test-io-task.c
index a36cb824eb..e091c12e10 100644
--- a/tests/test-io-task.c
+++ b/tests/test-io-task.c
@@ -110,7 +110,7 @@ static void test_task_data_free(void)
}
-static void test_task_error(void)
+static void test_task_failure(void)
{
QIOTask *task;
Object *obj = object_new(TYPE_DUMMY);
@@ -214,7 +214,7 @@ static void test_task_thread_complete(void)
}
-static void test_task_thread_error(void)
+static void test_task_thread_failure(void)
{
QIOTask *task;
Object *obj = object_new(TYPE_DUMMY);
@@ -262,8 +262,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/error", test_task_error);
+ g_test_add_func("/crypto/task/failure", test_task_failure);
g_test_add_func("/crypto/task/thread_complete", test_task_thread_complete);
- g_test_add_func("/crypto/task/thread_error", test_task_thread_error);
+ g_test_add_func("/crypto/task/thread_failure", test_task_thread_failure);
return g_test_run();
}