<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre style="font-family: 'Courier New', courier, monotype; "><span class="stdout" style="font-family: 'Courier New', courier, monotype; color: black; "><div style="font-family: Helvetica; white-space: normal; ">Hi Michael,</div><div style="font-family: Helvetica; white-space: normal; "><br></div><div style="font-family: Helvetica; white-space: normal; ">It looks like this unit test may not have liked your checkin on clang-x86_64-darwin10-gcc42-RA. Can you either checkin a quick fix, revert, or XFAIL+bug?</div><div style="font-family: Helvetica; white-space: normal; "><br></div><div style="font-family: Helvetica; white-space: normal; ">-Andy</div><div><br></div></span></pre><pre style="font-family: 'Courier New', courier, monotype; ">******************** TEST 'Clang :: Frontend/dependency-gen.c' FAILED ********************Script:</pre><pre style="font-family: 'Courier New', courier, monotype; "><span class="stdout" style="font-family: 'Courier New', courier, monotype; color: black; ">--
clang: warning: argument unused during compilation: '-S'
In file included from <built-in>:138:
<command line>:1:10: fatal error: 'a/b/x.h' file not found
#include "a/b/x.h"
         ^
1 error generated.</span></pre></span><div><br></div><div><div>On Mar 23, 2011, at 10:23 PM, Michael J. Spencer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Author: mspencer<br>Date: Thu Mar 24 00:23:40 2011<br>New Revision: 128199<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=128199&view=rev">http://llvm.org/viewvc/llvm-project?rev=128199&view=rev</a><br>Log:<br>Remove all uses of PATH_MAX and MAXPATHLEN from PathV2.<br><br>Modified:<br>    llvm/trunk/lib/Support/Unix/PathV2.inc<br><br>Modified: llvm/trunk/lib/Support/Unix/PathV2.inc<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=128199&r1=128198&r2=128199&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=128199&r1=128198&r2=128199&view=diff</a><br>==============================================================================<br>--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)<br>+++ llvm/trunk/lib/Support/Unix/PathV2.inc Thu Mar 24 00:23:40 2011<br>@@ -93,7 +93,8 @@<br> namespace fs {<br><br> error_code current_path(SmallVectorImpl<char> &result) {<br>-  result.reserve(MAXPATHLEN);<br>+  // Reserve an arbitrary amount of space.<br>+  result.reserve(128);<br><br>   while (true) {<br>     if (::getcwd(result.data(), result.capacity()) == 0) {<br>@@ -417,18 +418,13 @@<br>   }<br><br>    // Make the path absolute.<br>-  char real_path_buff[PATH_MAX + 1];<br>-  if (realpath(RandomPath.c_str(), real_path_buff) == NULL) {<br>-    int error = errno;<br>+  if (error_code ec = make_absolute(RandomPath)) {<br>     ::close(RandomFD);<br>     ::unlink(RandomPath.c_str());<br>-    return error_code(error, system_category());<br>+    return ec;<br>   }<br><br>-  result_path.clear();<br>-  StringRef d(real_path_buff);<br>-  result_path.append(d.begin(), d.end());<br>-<br>+  result_path = RandomPath;<br>   result_fd = RandomFD;<br>   return success;<br> }<br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></div></blockquote></div><br></body></html>