[GSOC] directive_failed(status, "string") meaning

Joel Sherrill joel.sherrill at OARcorp.com
Mon Jul 2 15:20:03 UTC 2012


On 07/02/2012 10:05 AM, Gedare Bloom wrote:
> for example:
>
> cd rtems
> grep "directive_failed" -R *
>
> I prefer to use ack (or ack-grep), which is tuned to ignore certain
> kinds of files leading to faster searches, though I have to configure
> it to find the .inl files
And if grep, cscope, etc do their magic correctly, you should
end up in the testsuites/support directory.

You will see it is a special assert for the Classic API tests which
checks for thread dispatching being enabled again and
return code of RTEMS_SUCCESS. On failure, it prints a uniform
message and calls rtems_test_exit().

There are variations for cases which do not expect RTEMS_SUCCESS
and are not expected to return with thread dispatching enabled.

--joel
> -Gedare
>
> On Mon, Jul 2, 2012 at 9:38 AM, Sebastian Huber
> <sebastian.huber at embedded-brains.de>  wrote:
>> On 07/02/2012 03:26 PM, Xiaochen Pan wrote:
>>> I came across this line when reading the code in testsuites. I would like
>>> to know which header file is this function defined and the precise
>>> definition of this function.
>>
>> You can use a "grep" program for this to search in the source code.  You can
>> also use a program like ctags, cscope, or clang to index the sources.
>>
>> --
>> Sebastian Huber, embedded brains GmbH
>>
>> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
>> Phone   : +49 89 18 90 80 79-6
>> Fax     : +49 89 18 90 80 79-9
>> E-Mail  : sebastian.huber at embedded-brains.de
>> PGP     : Public key available on request.
>>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>
>> _______________________________________________
>> rtems-devel mailing list
>> rtems-devel at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-devel
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel


-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985





More information about the devel mailing list