aganea created this revision. aganea added reviewers: rnk, jlebar. aganea added a project: clang. Herald added a subscriber: mstorsjo. aganea edited the summary of this revision.
The files below have been synced by Tortoise as CRLF, and it looks like they are like that in the depot as well (I'm still using the SVN setup) Strangely `svn diff` shows them as LF. The issue is that `grep 'something$'` doesn't match the newline inside the MINGW32 bash (mintty). Repository: rC Clang https://reviews.llvm.org/D61496 Files: clang/trunk/test/Preprocessor/indent_macro.c clang/trunk/test/Preprocessor/macro_fn_varargs_named.c clang/trunk/test/Preprocessor/macro_not_define.c clang/trunk/test/Preprocessor/macro_rparen_scan.c Index: clang/trunk/test/Preprocessor/macro_rparen_scan.c =================================================================== --- clang/trunk/test/Preprocessor/macro_rparen_scan.c +++ clang/trunk/test/Preprocessor/macro_rparen_scan.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^3 ;$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^3 ;$' /* Right paren scanning, hard case. Should expand to 3. */ #define i(x) 3 Index: clang/trunk/test/Preprocessor/macro_not_define.c =================================================================== --- clang/trunk/test/Preprocessor/macro_not_define.c +++ clang/trunk/test/Preprocessor/macro_not_define.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^ # define X 3$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^ # define X 3$' #define H # #define D define Index: clang/trunk/test/Preprocessor/macro_fn_varargs_named.c =================================================================== --- clang/trunk/test/Preprocessor/macro_fn_varargs_named.c +++ clang/trunk/test/Preprocessor/macro_fn_varargs_named.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -E %s | grep '^a: x$' -// RUN: %clang_cc1 -E %s | grep '^b: x y, z,h$' -// RUN: %clang_cc1 -E %s | grep '^c: foo(x)$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^a: x$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^b: x y, z,h$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^c: foo(x)$' #define A(b, c...) b c a: A(x) Index: clang/trunk/test/Preprocessor/indent_macro.c =================================================================== --- clang/trunk/test/Preprocessor/indent_macro.c +++ clang/trunk/test/Preprocessor/indent_macro.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^ zzap$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^ zzap$' // zzap is on a new line, should be indented. #define BLAH zzap
Index: clang/trunk/test/Preprocessor/macro_rparen_scan.c =================================================================== --- clang/trunk/test/Preprocessor/macro_rparen_scan.c +++ clang/trunk/test/Preprocessor/macro_rparen_scan.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^3 ;$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^3 ;$' /* Right paren scanning, hard case. Should expand to 3. */ #define i(x) 3 Index: clang/trunk/test/Preprocessor/macro_not_define.c =================================================================== --- clang/trunk/test/Preprocessor/macro_not_define.c +++ clang/trunk/test/Preprocessor/macro_not_define.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^ # define X 3$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^ # define X 3$' #define H # #define D define Index: clang/trunk/test/Preprocessor/macro_fn_varargs_named.c =================================================================== --- clang/trunk/test/Preprocessor/macro_fn_varargs_named.c +++ clang/trunk/test/Preprocessor/macro_fn_varargs_named.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -E %s | grep '^a: x$' -// RUN: %clang_cc1 -E %s | grep '^b: x y, z,h$' -// RUN: %clang_cc1 -E %s | grep '^c: foo(x)$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^a: x$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^b: x y, z,h$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^c: foo(x)$' #define A(b, c...) b c a: A(x) Index: clang/trunk/test/Preprocessor/indent_macro.c =================================================================== --- clang/trunk/test/Preprocessor/indent_macro.c +++ clang/trunk/test/Preprocessor/indent_macro.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s | grep '^ zzap$' +// RUN: %clang_cc1 -E %s | dos2unix | grep '^ zzap$' // zzap is on a new line, should be indented. #define BLAH zzap
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits