The testcase sync_file_range01 uses a file descriptor (variable sfd) in its
second test, expcting to see an ESPIPE error.

Unfortunately, the code's open of that file descriptor somehow ended up
within a set of curly braces encompasing an error path, not the mainline
code where it should be. Thus, sfd is never set, In practice this leaves
sfd set to zero. That is actually stdin and stdin can work for the testcase
but it is not guaranteed. In fact it mostly works, but it hapens to fail
sometimes. The attached patch causes the open for sfd (to /dev/null) to
actually get invoked.

(See attached file: sync_file_range01.diff)

Robert Paulsen
IBM Linux Technology Center, Austin
[email protected]
512-468-0565

Attachment: sync_file_range01.diff
Description: Binary data

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to