<p dir="ltr">Hi Ed,</p>
<p dir="ltr">What is the motivation for this change?</p>
<div class="gmail_quote">On Feb 5, 2015 8:14 AM, "Ed Maste" <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: emaste<br>
Date: Thu Feb  5 10:11:33 2015<br>
New Revision: 228306<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=228306&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=228306&view=rev</a><br>
Log:<br>
In fd leak test report all open fds, not only first failure<br>
<br>
Modified:<br>
    lldb/trunk/test/functionalities/avoids-fd-leak/main.c<br>
<br>
Modified: lldb/trunk/test/functionalities/avoids-fd-leak/main.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/avoids-fd-leak/main.c?rev=228306&r1=228305&r2=228306&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/avoids-fd-leak/main.c?rev=228306&r1=228305&r2=228306&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/test/functionalities/avoids-fd-leak/main.c (original)<br>
+++ lldb/trunk/test/functionalities/avoids-fd-leak/main.c Thu Feb  5 10:11:33 2015<br>
@@ -8,7 +8,7 @@ int<br>
 main (int argc, char const **argv)<br>
 {<br>
     struct stat buf;<br>
-    int i;<br>
+    int i, rv = 0;<br>
<br>
     // Make sure stdin/stdout/stderr exist.<br>
     for (i = 0; i <= 2; ++i) {<br>
@@ -20,9 +20,9 @@ main (int argc, char const **argv)<br>
     for (i = 3; i <= 256; ++i) {<br>
         if (fstat(i, &buf) == 0 || errno != EBADF) {<br>
             fprintf(stderr, "File descriptor %d is open.\n", i);<br>
-            return 2;<br>
+            rv = 2;<br>
         }<br>
     }<br>
<br>
-    return 0;<br>
+    return rv;<br>
 }<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>