<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 17, 2013 at 12:10 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Sat, Feb 9, 2013 at 7:32 PM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>> wrote:<br>
> Hello Alexey,<br>
><br>
> On Mon, Feb 4, 2013 at 12:16 PM, Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>> wrote:<br>
>> +TEST(SanitizerCommon, FileOps) {<br>
>> + const char *str1 = "qwerty";<br>
>> + uptr len1 = internal_strlen(str1);<br>
>> + const char *str2 = "zxcv";<br>
>> + uptr len2 = internal_strlen(str2);<br>
>> +<br>
>> + const char kTempFileName[] = "/tmp/sanitizer_common.tmp";<br>
>> + fd_t fd = OpenFile(kTempFileName, true);<br>
><br>
> This test fails if the file already exists and the user doesn't have<br>
> enough permissions to open it. This can trivially happen on a<br>
> multi-user machine.<br>
<br>
</div>Alexey,<br>
<br>
This does actually happen, for example on my buildbot. The build runs<br>
from a different user, and it created the temporary file first. Now<br>
this test fails under my normal user.<br></blockquote><div><br></div><div style>Yes, sorry for fixing this that slowly...</div><div style>I think r175424 should help.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div></div>