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)

Signed-off-by: Robert Paulsen <[email protected]>

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

Attachment: sync_file_range01.diff
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to