[Sound-open-firmware] [PATCH 08/10] test: incorrect param for one of norm_int32 tests Signed-off-by: Slawomir Blauciak <slawomir.blauciak at linux.intel.com>
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Jun 21 12:12:06 CEST 2018
From: Slawomir Blauciak <slawomir.blauciak at linux.intel.com>
---
test/cmocka/src/math/numbers/norm_int32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/cmocka/src/math/numbers/norm_int32.c b/test/cmocka/src/math/numbers/norm_int32.c
index 772f74b..5ffe33e 100644
--- a/test/cmocka/src/math/numbers/norm_int32.c
+++ b/test/cmocka/src/math/numbers/norm_int32.c
@@ -53,11 +53,11 @@ static void test_math_numbers_norm_int32_for_35_equals_10(void **state)
assert_int_equal(r, 25);
}
-static void test_math_numbers_norm_int32_for_2147483648_equals_0(void **state)
+static void test_math_numbers_norm_int32_for_2147483647_equals_0(void **state)
{
(void)state;
- int r = norm_int32(2147483648);
+ int r = norm_int32(2147483647);
assert_int_equal(r, 0);
}
@@ -69,7 +69,7 @@ int main(void)
cmocka_unit_test
(test_math_numbers_norm_int32_for_35_equals_10),
cmocka_unit_test
- (test_math_numbers_norm_int32_for_2147483648_equals_0)
+ (test_math_numbers_norm_int32_for_2147483647_equals_0)
};
cmocka_set_message_output(CM_OUTPUT_TAP);
--
2.17.0
More information about the Sound-open-firmware
mailing list