Author: Fangrui Song Date: 2023-05-18T11:31:39-07:00 New Revision: ac8ccbbd0c995ae5ab9869af63f425bef8c49711
URL: https://github.com/llvm/llvm-project/commit/ac8ccbbd0c995ae5ab9869af63f425bef8c49711 DIFF: https://github.com/llvm/llvm-project/commit/ac8ccbbd0c995ae5ab9869af63f425bef8c49711.diff LOG: [test] Driver/code-coverage.c: chdir to a temporary directory -coverage-notes-file=aaa.gcno -coverage-data-file=bbb.gcda creates aaa.gcno in the current directory (a pattern to be avoided; which may be read-only in an alternative lit runner). Added: Modified: clang/test/CodeGen/code-coverage.c Removed: ################################################################################ diff --git a/clang/test/CodeGen/code-coverage.c b/clang/test/CodeGen/code-coverage.c index 10fe4c3b1800..dbb7e1479290 100644 --- a/clang/test/CodeGen/code-coverage.c +++ b/clang/test/CodeGen/code-coverage.c @@ -2,6 +2,7 @@ /// 3.4 redesigns the format and changed .da to .gcda /// 4.7 enables cfg_checksum. /// 4.8 (default, compatible with gcov 7) emits the exit block the second. +// RUN: rm -rf %t && mkdir %t && cd %t // RUN: %clang_cc1 -emit-llvm -disable-red-zone -coverage-data-file /dev/null -coverage-version='304*' %s -o - | \ // RUN: FileCheck --check-prefixes=CHECK,304 %s // RUN: %clang_cc1 -emit-llvm -disable-red-zone -coverage-data-file /dev/null -coverage-version='407*' %s -o - | \ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits