mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This reverts commit 499ed05fd9.
This changes the num-threads passed to 1 to avoid a multithreaded output
issue on windows
14 lines
1.1 KiB
Swift
14 lines
1.1 KiB
Swift
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -num-threads 0 -emit-ir %S/Inputs/coverage_num_threads1.swift | %FileCheck %s -check-prefix=SINGLE-SOURCE --implicit-check-not="llvm_coverage_mapping ="
|
|
|
|
// SINGLE-SOURCE: llvm_coverage_mapping =
|
|
|
|
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -num-threads 0 -emit-ir %S/Inputs/coverage_num_threads1.swift %S/Inputs/coverage_num_threads2.swift | %FileCheck %s -check-prefix=SINGLE-OBJECT --implicit-check-not="llvm_coverage_mapping ="
|
|
|
|
// SINGLE-OBJECT: llvm_coverage_mapping =
|
|
|
|
// Using 1 goes down the multithreaded codepath but only operates with a single thread to work around an issue on Windows where the output of both IR modules is interleaved and therefore the output is invalid
|
|
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -num-threads 1 -emit-ir %S/Inputs/coverage_num_threads1.swift %S/Inputs/coverage_num_threads2.swift | %FileCheck %s -check-prefix=MULTIPLE-OBJECTS --implicit-check-not="llvm_coverage_mapping ="
|
|
|
|
// MULTIPLE-OBJECTS: llvm_coverage_mapping =
|
|
// MULTIPLE-OBJECTS: llvm_coverage_mapping =
|