[llvm] 85bed2f - [AIX] Remove diff -a option on llvm-cov.test
Shuhong Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 09:25:02 PDT 2020
Author: Shuhong Liu
Date: 2020-07-14T12:24:36-04:00
New Revision: 85bed2f381eaa528b851c53e5f9429c6d3966c85
URL: https://github.com/llvm/llvm-project/commit/85bed2f381eaa528b851c53e5f9429c6d3966c85
DIFF: https://github.com/llvm/llvm-project/commit/85bed2f381eaa528b851c53e5f9429c6d3966c85.diff
LOG: [AIX] Remove diff -a option on llvm-cov.test
Summary:
llvm-cov.test generates .gcov files and compared with target
sample files. Since the files do not contain any binary data
(files are plain ASCII texts), remove -a from diff. And this
fix will the error on AIX since the default diff tool on AIX
does not support -a option.
Reviewers: hubert.reinterpretcast, daltenty, stevewan
Subscribers: llvm-commits
Tags: #LLVM
Differential Revision: https://reviews.llvm.org/D83711
Added:
Modified:
llvm/test/tools/llvm-cov/llvm-cov.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
index 127e9b3b693f..2256501cd5ea 100644
--- a/llvm/test/tools/llvm-cov/llvm-cov.test
+++ b/llvm/test/tools/llvm-cov/llvm-cov.test
@@ -13,7 +13,7 @@ RUN: cp %p/Inputs/test* .
# Basic behaviour with no flags
RUN: llvm-cov gcov test.c 2> %t.err | FileCheck %s --check-prefixes=OUT,OUTFILE --match-full-lines --strict-whitespace
RUN: FileCheck %s --check-prefix=C --match-full-lines --strict-whitespace < test.cpp.gcov
-RUN:
diff -aub test_no_options.h.gcov test.h.gcov
+RUN:
diff -ub test_no_options.h.gcov test.h.gcov
RUN: count 0 < %t.err
# Same, but specifying the object directory
@@ -156,8 +156,8 @@ H-C: unconditional 0 taken 1
# Missing gcda file just gives 0 counts.
RUN: llvm-cov gcov test.c -gcda=no_such_gcda_file | FileCheck %s --check-prefix=NO-GCDA
-RUN:
diff -aub test_no_gcda.cpp.gcov test.cpp.gcov
-RUN:
diff -aub test_no_gcda.h.gcov test.h.gcov
+RUN:
diff -ub test_no_gcda.cpp.gcov test.cpp.gcov
+RUN:
diff -ub test_no_gcda.h.gcov test.h.gcov
NO-GCDA: File 'test.cpp'
NO-GCDA-NEXT: Lines executed:0.00% of 43
NO-GCDA-NEXT: Creating 'test.cpp.gcov'
More information about the llvm-commits
mailing list