<div dir="ltr">Unless I am doing something wrong, this is a diff to code which has <div>not been merged. Can you send a complete patch with the entire</div><div>contents of the psxinttypes01 directory?</div><div><br></div><div>Sorry for being slow. It was a long holiday weekend here.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 2, 2017 at 11:45 AM, Aditya Upadhyay <span dir="ltr"><<a href="mailto:aadit0402@gmail.com" target="_blank">aadit0402@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
testsuites/psxtests/<wbr>psxinttypes01/init.c | 23 +++++++++++-----------<br>
.../psxtests/psxinttypes01/<wbr>psxinttypes01.scn | 6 +++---<br>
2 files changed, 15 insertions(+), 14 deletions(-)<br>
<br>
diff --git a/testsuites/psxtests/<wbr>psxinttypes01/init.c b/testsuites/psxtests/<wbr>psxinttypes01/init.c<br>
index e593e43..8fc79f6 100644<br>
--- a/testsuites/psxtests/<wbr>psxinttypes01/init.c<br>
+++ b/testsuites/psxtests/<wbr>psxinttypes01/init.c<br>
@@ -13,12 +13,13 @@<br>
#include <stdlib.h><br>
#include <stdio.h><br>
#include <errno.h><br>
+#include <stdint.h><br>
#include <tmacros.h><br>
<br>
/* forward declarations to avoid warnings */<br>
<br>
rtems_task Init(rtems_task_argument argument);<br>
-const char rtems_test_name[] = "PSXINTTYPE 01";<br>
+const char rtems_test_name[] = "PSXINTTYPES 01";<br>
rtems_printer rtems_test_printer;<br>
<br>
/*<br>
@@ -48,16 +49,16 @@ rtems_task Init(<br>
/* Test for wcstoimax */<br>
<br>
m = wcstoimax(nptr1, &endptr1, base);<br>
- rtems_test_assert (m == ERANGE);<br>
- rtems_test_assert (m == EINVAL);<br>
-<br>
+ rtems_test_assert (m != 0);<br>
+ rtems_test_assert (!(*endptr1));<br>
+<br>
printf( "wcstoimax = %jd\n", m );<br>
<br>
/* test for strtoumax */<br>
<br>
j = strtoumax (nptr, &endptr, base);<br>
- rtems_test_assert (j == ERANGE);<br>
- rtems_test_assert (j == EINVAL);<br>
+ rtems_test_assert (j != 0);<br>
+ rtems_test_assert (*endptr);<br>
<br>
printf( "strtoumax = %ju ( base %d )\n", j, base );<br>
printf( "Stopped scan at %s\n\n", endptr );<br>
@@ -65,8 +66,8 @@ rtems_task Init(<br>
/*test for wcstoumax */<br>
<br>
k = wcstoumax (nptr1, &endptr1, base);<br>
- rtems_test_assert (k == ERANGE);<br>
- rtems_test_assert (k == EINVAL);<br>
+ rtems_test_assert (k != 0);<br>
+ rtems_test_assert (!(*endptr1));<br>
<br>
printf( "wcstoumax = %ju\n", k );<br>
<br>
@@ -81,9 +82,9 @@ rtems_task Init(<br>
<br>
/*Test for strtoimax */<br>
<br>
- n = strtoimax ("11111111", &endptr, 2);<br>
- rtems_test_assert (n == ERANGE);<br>
- rtems_test_assert (n == EINVAL);<br>
+ n = strtoimax ("-123junk", &endptr, base);<br>
+ rtems_test_assert (n != 0);<br>
+ rtems_test_assert (*endptr);<br>
<br>
printf( "strtoimax value = %jd\n", n);<br>
<br>
diff --git a/testsuites/psxtests/<wbr>psxinttypes01/psxinttypes01.<wbr>scn b/testsuites/psxtests/<wbr>psxinttypes01/psxinttypes01.<wbr>scn<br>
index 47a5416..79553be 100644<br>
--- a/testsuites/psxtests/<wbr>psxinttypes01/psxinttypes01.<wbr>scn<br>
+++ b/testsuites/psxtests/<wbr>psxinttypes01/psxinttypes01.<wbr>scn<br>
@@ -1,4 +1,4 @@<br>
-*** BEGIN OF TEST PSXINTTYPE 01 ***<br>
+*** BEGIN OF TEST PSXINTTYPES 01 ***<br>
wcstoimax = 10110134932<br>
strtoumax = 20690239864 ( base 10 )<br>
Stopped scan at abc<br>
@@ -6,6 +6,6 @@ Stopped scan at abc<br>
wcstoumax = 10110134932<br>
imax div value = 3<br>
imaxabs_value = 1234<br>
-strtoimax value = 255<br>
-*** END OF TEST PSXINTTYPE 01 ***<br>
+strtoimax value = -123<br>
+*** END OF TEST PSXINTTYPES 01 ***<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div>