RTEMS | libfs/pipe: Add pipe and pipe2 indirect handler calls (!1383)
Chris Johns (@chris)
gitlab at rtems.org
Mon Aug 3 23:05:46 UTC 2026
Chris Johns commented on a discussion on testsuites/psxtests/psxpipe01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1383#note_156423
> +
> +static int pipe2_handler( int fildes[ 2 ], int flags )
> +{
> + rtems_test_assert( flags == 0x77654321 );
> + fildes[ 0 ] = 0xfedc;
> + fildes[ 1 ] = 0x5432;
> + return -2;
> +}
> +
> +static void pipe_handler_test()
> +{
> + int fd[ 2 ] = { 0, 0 };
> + int status = 0;
> +
> + puts( "" );
> + puts( "Pipe handler tests:" );
The existing `scn` is not up to date. The test has:
```
*** TEST POSIX PIPE CREATION - 01 ***
Init - attempt to create pipe -- expect EFAULT
Init - create pipe -- OK
Init - dup pipe -- OK
Init - read pipe -- OK
Init - create pipe -- OK
Init - attempt to create pipe -- expect ENOMEM
Init - create pipe -- expect ENFILE
Init - create pipe -- expect ENFILE
*** END OF TEST POSIX PIPE CREATION - 01 ***
```
And it is now:
```
*** BEGIN OF TEST PSXPIPE 1 ***
*** TEST VERSION: 7.0.0.e468a3c9b4fde4c636166ba25dd67b38e65d5b6c-modified
*** TEST STATE: EXPECTED_PASS
*** TEST BUILD: RTEMS_DEBUG RTEMS_POSIX_API
*** TEST TOOLS: 15.2.0 20250808 (RTEMS 7, Build 2026.06.12, RSB 677c31c6360ca84c78e310af46c9f5b4e3ca199c, Newlib 7d4336cf)
Default pipe tests:
Init - attempt to create pipe -- expect EFAULT
Init - create pipe -- OK
Init - dup pipe -- OK
Init - read pipe -- OK
Init - create pipe -- OK
Init - attempt to create pipe -- expect ENOMEM
Init - create pipe -- expect ENFILE
Init - create pipe -- expect ENFILE
Pipe handler tests:
Register handlers
Check pipe handler call
Check pipe2 handler call
*** END OF TEST PSXPIPE 1 ***
```
Ignoring all the tools and RTEMS version info the test subject line has changes
How many others tests and wrong?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1383#note_156423
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-apehsmbzbzejsgkqb54qzqcwy-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260803/8cd88837/attachment-0001.htm>
More information about the bugs
mailing list