Adding test for clock_getcpuclockid()

Gedare Bloom gedare at rtems.org
Wed Apr 8 17:47:29 UTC 2020


You should write the test according to the API specification. The test is
expected to fail until the function is implemented (correctly).

On Wed, Apr 8, 2020, 11:22 AM Eshan Dhawan <eshandhawan51 at gmail.com> wrote:

> hello,
> how do I add a test for a function that returns -1(ENOSYS), Since isn't
> implemented yet?
> Though of adding test for clock_getcpuclockid in the same file of
> psxgetcpuclockid01.
> I wrote the test but it will always return -1.
> should I change the rtems_test_asset( r==0 ) to r==-1 and add a print
> statement to tell it will be returning -1 ?
> Or there are other ways?
>
> thanks
> -Eshan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200408/9308f91a/attachment.html>


More information about the devel mailing list