<div dir="ltr">You added a few test cases so they need to be added to the .doc file in the same directory. <div><br></div><div>I don't think you changed the test output so the .scn (screen) file should be OK.</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 2, 2020 at 5:30 AM Eshan dhawan <<a href="mailto:eshandhawan51@gmail.com">eshandhawan51@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
testsuites/psxtests/psxinttypes01/init.c | 25 +++++++++++++++++++++---<br>
1 file changed, 22 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/testsuites/psxtests/psxinttypes01/init.c b/testsuites/psxtests/psxinttypes01/init.c<br>
index 030aa2aa57..d86313b251 100644<br>
--- a/testsuites/psxtests/psxinttypes01/init.c<br>
+++ b/testsuites/psxtests/psxinttypes01/init.c<br>
@@ -6,6 +6,7 @@<br>
/*<br>
* SPDX-License-Identifier: BSD-2-Clause<br>
*<br>
+ * Copyright (C) 2020, Eshan Dhawan <br>
* Copyright (C) 2019, Aditya Upadhyay and Vaibhav Gupta<br>
*<br>
* Redistribution and use in source and binary forms, with or without<br>
@@ -64,11 +65,29 @@ rtems_task Init(rtems_task_argument ignored)<br>
wchar_t *nptr2_n_errange = L"-9999999999999999999999";<br>
wchar_t *endptr2 = NULL;<br>
<br>
- intmax_t result_strtoimax;<br>
+ intmax_t result_strtoimax, result_imaxabs, input_1, input_2 ;<br>
+ imaxdiv_t result_exp, result_imaxdiv ;<br>
uintmax_t result_strtoumax;<br>
<br>
TEST_BEGIN();<br>
-<br>
+ /* Test for imaxabs */ <br>
+ input_1 = -10 ;<br>
+ result_imaxabs = 10 ;<br>
+ rtems_test_assert( imaxabs(input_1) == result_imaxabs );<br>
+ <br>
+ input_1 = 10 ;<br>
+ result_imaxabs = 10 ;<br>
+ rtems_test_assert( imaxabs(input_1) == result_imaxabs );<br>
+<br>
+ /* Test for imaxdiv */<br>
+ input_1 = 10 ;<br>
+ input_2 = 3 ;<br>
+ result_exp.quot = input_1 / input_2 ;<br>
+ result_exp.rem = input_1 % input_2 ;<br>
+ result_imaxdiv = imaxdiv(input_1, input_2) ; <br>
+ rtems_test_assert( result_imaxdiv.quot == result_exp.quot && <br>
+ result_imaxdiv.rem == result_exp.rem ); <br>
+ <br>
/* Test for strtoimax */<br>
puts( "\nstrtoimax Testcases...." );<br>
puts( "Valid Inputs - Positive Number" );<br>
@@ -83,7 +102,7 @@ rtems_task Init(rtems_task_argument ignored)<br>
rtems_test_assert( result_strtoimax == -123 );<br>
<br>
puts( "Final string pointed by endptr" );<br>
- rtems_test_assert( endptr1 == ( nptr1_n + 4 ) );<br>
+ rtems_test_assert( endptr1 == ( nptr1_n + 4 ) ); <br>
<br>
puts( "Valid Input - Positive Number - Number out of Range" );<br>
result_strtoimax = strtoimax( nptr1_p_errange, &endptr1, base );<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div>