File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
// clean directory, put the source there, and cd into it.
3
3
// RUN: rm -rf %t
4
4
// RUN: mkdir -p %t/foo/bar/baz
5
- // RUN: cp %s %t/foo/bar/baz/coverage_relative_path.swift
5
+ // RUN: echo "func coverage() {}" > %t/foo/bar/baz/coverage_relative_path.swift
6
6
// RUN: cd %t/foo/bar
7
7
8
- // RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -Xllvm -enable-name-compression=false -emit-ir baz/coverage_relative_path.swift | %FileCheck -check-prefix=ABSOLUTE %s
8
+ // RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -Xllvm -enable-name-compression=false -emit-ir %/t/foo/bar/ baz/coverage_relative_path.swift | %FileCheck -check-prefix=ABSOLUTE %s
9
9
//
10
10
// ABSOLUTE: @__llvm_coverage_mapping = {{.*"\\01.*foo.*bar.*baz.*coverage_relative_path\.swift}}
11
11
12
- // RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -Xllvm -enable-name-compression=false -coverage-prefix-map $PWD =. -emit-ir baz/coverage_relative_path.swift | %FileCheck -check-prefix=RELATIVE %s
12
+ // RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -Xllvm -enable-name-compression=false -coverage-prefix-map %/t/foo/bar =. -emit-ir %/t/foo/bar/ baz/coverage_relative_path.swift | %FileCheck -check-prefix=RELATIVE %s
13
13
//
14
14
// RELATIVE: @__llvm_coverage_mapping = {{.*"\\01[^/]*}}.{{/|\\}}baz{{.*coverage_relative_path\.swift}}
15
15
You can’t perform that action at this time.
0 commit comments