<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 25, 2017 5:04 PM, "Chris Johns" <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text"><br>
> On 25 Jan 2017, at 9:33 pm, Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br>
><br>
> On Wed, Jan 25, 2017 at 2:07 AM, Sebastian Huber<br>
> <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-<wbr>brains.de</a>> wrote:<br>
>> On 25/01/17 04:00, Gedare Bloom wrote:<br>
>>><br>
>>>> On Tue, Jan 24, 2017 at 7:25 PM, Joel Sherrill<<a href="mailto:joel@rtems.org">joel@rtems.org</a>>  wrote:<br>
>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Jan 24, 2017 at 6:23 PM, Gedare Bloom<<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>>  wrote:<br>
>>>>><br>
>>>>>>><br>
>>>>>>> Yes. They should fail with MAP_FAILED until we get a proper mmap().<br>
>>>>>>> This can be either detected, or the test can be augmented until we get<br>
>>>>>>> mmap support for shm objects done.<br>
>>>>>>><br>
>>>><br>
>>>>><br>
>>>>> When you say augmented, you mean with an implementation of the<br>
>>>>> adapter layer you defined that uses malloc() and knows a few names?<br>
>>>>><br>
>>><br>
>>> I mean to ignore/expect the MAP_FAILED return from mmap and terminate<br>
>>> gracefully.<br>
>>><br>
>><br>
>> In case MAP_FAILED is currently the expected return value on all<br>
>> architectures, then this should be expected by the test. When will there be<br>
>> a proper mmap() implementation exist? What is a proper mmap() implementation<br>
>> for RTEMS at all?<br>
>><br>
> Timeline is not certain. I hope within 2 months.<br>
><br>
>> I used mmap() on some GUI library to speed up the font initialization and<br>
>> simply mapped read-only font files (IMFS memfiles) via mmap(). It would be<br>
>> good to gather some use cases. I think Qt uses also mmap() for font files.<br>
>><br>
> I know that mmap'ing files was a use case before. I have old code from<br>
> Chris to support it, and intend to extend/re-implement that support to<br>
> also provide mmap support for shm objects.<br>
><br>
<br>
</div>Why not tag the test as "excepted fail" in the .tcfg file for all archs? All testing frame works need to be updated to handle the new message at the start of the test and either report the excepted fail did fail or it passed, requiring we update the .tcfg file.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Is this a failure on a single BSP or all? I got the impression it was currently failing on all and was expected to until Gedare got the backends working for our use cases.</div><div dir="auto"><br></div><div dir="auto">How so we deal with this?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I prefer tests do not mask a failure when it exists and we should be or are in the process of fixing it.<br>
<font color="#888888"></font></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I agree. </div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font color="#888888"><br>
Chris<br>
</font><div class="elided-text">______________________________<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>
</div></blockquote></div><br></div></div></div>