From fe8db5a2d1a449fc028ed94eadf3e29479249b7f Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Tue, 9 Apr 2013 14:13:47 +0100 Subject: [PATCH] eo: Update tests to check for the correct error strings Signed-off-by: Daniel Willmann --- src/tests/eo/suite/eo_test_class_errors.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/eo/suite/eo_test_class_errors.c b/src/tests/eo/suite/eo_test_class_errors.c index cf3c43434e..658ff6d98d 100644 --- a/src/tests/eo/suite/eo_test_class_errors.c +++ b/src/tests/eo/suite/eo_test_class_errors.c @@ -132,7 +132,7 @@ START_TEST(eo_incomplete_desc) class_desc.ops.descs = op_desc; class_desc.ops.count = TEST_SUB_ID_LAST + 1; - TEST_EO_ERROR("_eo_class_check_op_descs", "Found too few Ops description for class '%s'. Expected %lx descriptions, but found %lx."); + TEST_EO_ERROR("_eo_class_check_op_descs", "Found too few Ops description for class '%s'. Expected 0x%lx descriptions, but found 0x%lx."); klass = eo_class_new(&class_desc, NULL, NULL); fail_if(klass); fail_unless(ctx.did); @@ -147,7 +147,7 @@ START_TEST(eo_incomplete_desc) class_desc.ops.count = TEST_SUB_ID_LAST; class_desc.ops.descs = op_desc_wrong; - TEST_EO_ERROR("_eo_class_check_op_descs", "Wrong order in Ops description for class '%s'. Expected %lx and got %lx"); + TEST_EO_ERROR("_eo_class_check_op_descs", "Wrong order in Ops description for class '%s'. Expected 0x%lx and got 0x%lx"); klass = eo_class_new(&class_desc, NULL, NULL); fail_if(klass); fail_unless(ctx.did); @@ -432,7 +432,7 @@ START_TEST(eo_op_types) NULL }; - TEST_EO_ERROR("eo_class_funcs_set", "Set function's op type (%x) is different than the one in the op description (%d) for op '%s:%s'. Func index: %lu"); + TEST_EO_ERROR("eo_class_funcs_set", "Set function's op type (0x%x) is different than the one in the op description (%d) for op '%s:%s'. Func index: %lu"); klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); fail_if(!klass);