Skip to content

Commit dd4e9a1

Browse files
committed
tests: run Misc/stats_dir_profiler.swift only on macos and linux
It's good enough to run the test on macOS and linux. The test takes very long on Windows because the * may expand to a path longer than 260 characters.
1 parent d8918ce commit dd4e9a1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Misc/stats_dir_profiler.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t/stats-events %s -profile-stats-events -Xfrontend -fine-grained-timers
55
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t/stats-entities %s -profile-stats-entities -Xfrontend -fine-grained-timers
66

7-
// Need to use %long-tmp because in Windows the * may expand to a path longer
8-
// than 260 characters.
97
// RUN: %FileCheck -check-prefix=EVENTS -input-file %long-tmp/stats-events/*.dir/Time.User.events %s
108
// RUN: %FileCheck -check-prefix=ENTITIES -input-file %long-tmp/stats-entities/*.dir/Time.User.entities %s
119

10+
// It's good enough to run the test on macOS and linux.
11+
// It takes very long on Windows because the * may expand to a path longer than 260 characters.
12+
13+
// REQUIRES: OS=macosx || OS=linux-gnu
14+
1215
// EVENTS: {{perform-sema;.*;typecheck-decl.* [0-9]+}}
1316
// ENTITIES: {{perform-sema;.*;TypeCheckFunctionBodyRequest bar\(\);typecheck-stmt.* [0-9]+}}
1417

0 commit comments

Comments
 (0)