[cfe-commits] r149202 - /cfe/trunk/test/Index/crash-recovery-modules.m

Sebastian Redl sebastian.redl at getdesigned.at
Sun Jan 29 13:53:15 PST 2012


On 29.01.2012, at 21:05, Douglas Gregor wrote:

> Author: dgregor
> Date: Sun Jan 29 14:05:18 2012
> New Revision: 149202
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=149202&view=rev
> Log:
> Update line numbers. Sigh
> 
> Modified:
>    cfe/trunk/test/Index/crash-recovery-modules.m
> 
> Modified: cfe/trunk/test/Index/crash-recovery-modules.m
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/crash-recovery-modules.m?rev=149202&r1=149201&r2=149202&view=diff
> ==============================================================================
> --- cfe/trunk/test/Index/crash-recovery-modules.m (original)
> +++ cfe/trunk/test/Index/crash-recovery-modules.m Sun Jan 29 14:05:18 2012
> @@ -4,7 +4,7 @@
> // Parse the file, such that building the module will cause Clang to crash.
> // RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodule-cache-path %t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s 2> %t.err
> // RUN: FileCheck < %t.err -check-prefix=CHECK-CRASH %s
> -// CHECK-CRASH: crash-recovery-modules.m:15:9:{15:2-15:14}: fatal error: could not build module 'Crash'
> +// CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could not build module 'Crash'
> 
> // Parse the file again, without crashing, to make sure that
> // subsequent parses do the right thing.

Files that check for line numbers should have the check lines at the end of the file. Makes them much less fragile.

Sebastian



More information about the cfe-commits mailing list