r309460 - [test] FileCheck-ify a test to avoid a spurious failure, NFC

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 28 17:19:52 PDT 2017


Author: vedantk
Date: Fri Jul 28 17:19:52 2017
New Revision: 309460

URL: http://llvm.org/viewvc/llvm-project?rev=309460&view=rev
Log:
[test] FileCheck-ify a test to avoid a spurious failure, NFC

The path to one of my source trees contains 'builtin' as a substring, so
this test failed. Fix it with FileCheck.

Modified:
    cfe/trunk/test/CodeGen/2004-02-20-Builtins.c

Modified: cfe/trunk/test/CodeGen/2004-02-20-Builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2004-02-20-Builtins.c?rev=309460&r1=309459&r2=309460&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2004-02-20-Builtins.c (original)
+++ cfe/trunk/test/CodeGen/2004-02-20-Builtins.c Fri Jul 28 17:19:52 2017
@@ -1,5 +1,8 @@
-// RUN: %clang_cc1  %s -emit-llvm -o - | not grep builtin
+// RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
 double sqrt(double x);
+
+// CHECK-LABEL: @zsqrtxxx
+// CHECK-NOT: builtin
 void zsqrtxxx(float num) {
    num = sqrt(num);
 }




More information about the cfe-commits mailing list