<div dir="ltr">No worries. Thank you for catching this so quickly.<br><div><br></div><div>As you guessed in your other commit message, the issue was that the new sed patterns weren't expecting a ':' in the path. I've fixed them and recommitted in r196474.</div>
<div><br></div><div>Cheers,</div><div>Lang.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 7:40 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lang, reverted in r196460, excuse me.<br>
<br>
2013/12/5 NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> It seems win32 builders don't like this.<br>
> See; <a href="http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/6122" target="_blank">http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/6122</a><br>
><br>
> I will investigate it, later, too.<br>
><br>
> 2013/12/5 Lang Hames <<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>>:<br>
>> Author: lhames<br>
>> Date: Wed Dec  4 18:33:58 2013<br>
>> New Revision: 196439<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=196439&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=196439&view=rev</a><br>
>> Log:<br>
>> If the LLVM OBJ_DIR path contains any characters not listed in the<br>
>> ScalarSafeChars array in Output::scalarString (See YAMLTraits.cpp line 554 as<br>
>> of r196428), this test will fail: The path will be single quoted to preserve<br>
>> the 'unsafe' characters, which doesn't match the expected (unquoted) output.<br>
>> Notionally "unsafe" characters include fairly innocuous ones like the '+'<br>
>> symbol (I don't know enough YAML to be sure, but I suspect '+' doesn't really<br>
>> need to be quoted).<br>
>><br>
>> I have added some sed lines to strip leading spaces, and leading and trailing<br>
>> single quote (') characters from the path. That should make this test slightly<br>
>> more robust.<br>
>><br>
>> If possible, this test should be rewritten to use FileCheck, rather than<br>
>> diffing against expected output - the latter is likely to brittle, and require<br>
>> further sed goop in the future.<br>
>><br>
>><br>
>> Modified:<br>
>>     clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp<br>
>><br>
>> Modified: clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp?rev=196439&r1=196438&r2=196439&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp?rev=196439&r1=196438&r2=196439&view=diff</a><br>

>> ==============================================================================<br>
>> --- clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp (original)<br>
>> +++ clang-tools-extra/trunk/test/clang-modernize/HeaderReplacements/main.cpp Wed Dec  4 18:33:58 2013<br>
>> @@ -12,11 +12,13 @@<br>
>>  // RUN: ls -1 %T/SerializeTest | FileCheck %s --check-prefix=MAIN_CPP<br>
>>  // RUN: ls -1 %T/SerializeTest | FileCheck %s --check-prefix=COMMON_CPP<br>
>>  // We need to put the build path to the expected YAML file to diff against the generated one.<br>
>> -// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#\([A-Z]:/.*\.[chp]*\)#'\1'#g" %S/main_expected.yaml > %T/SerializeTest/main_expected.yaml<br>
>> +// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#^\(.*:\)[[:space:]]*\(.*\)#\1 \2#g" %S/main_expected.yaml > %T/SerializeTest/main_expected.yaml<br>
>>  // RUN: sed -i -e 's#\\#/#g' %T/SerializeTest/main.cpp_*.yaml<br>
>> +// RUN: sed -i -e "s#^\(.*:\)[[:space:]]*'*\(/[^']*\)'*\$#\1 \2#g" %T/SerializeTest/main.cpp_*.yaml<br>
>>  // RUN: diff -b %T/SerializeTest/main_expected.yaml %T/SerializeTest/main.cpp_*.yaml<br>
>> -// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#\([A-Z]:/.*\.[chp]*\)#'\1'#g" %S/common_expected.yaml > %T/SerializeTest/common_expected.yaml<br>
>> +// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#^\(.*:\)[[:space:]]*\(.*\)#\1 \2#g" %S/common_expected.yaml > %T/SerializeTest/common_expected.yaml<br>
>>  // RUN: sed -i -e 's#\\#/#g' %T/SerializeTest/common.cpp_*.yaml<br>
>> +// RUN: sed -i -e "s#^\(.*:\)[[:space:]]*'*\(/[^']*\)'*\$#\1 \2#g" %T/SerializeTest/common.cpp_*.yaml<br>
>>  // RUN: diff -b %T/SerializeTest/common_expected.yaml %T/SerializeTest/common.cpp_*.yaml<br>
>>  //<br>
>>  // The following are for FileCheck when used on output of 'ls'. See above.<br>
>><br>
>><br>
>> _______________________________________________<br>
>> cfe-commits mailing list<br>
>> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div>