|
| 1 | +// RUN: %empty-directory(%t.tmp) |
| 2 | +// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk |
| 3 | +// RUN: %api-digester -diagnose-sdk -module Swift -o %t.tmp/changes.txt -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -abi -avoid-location |
| 4 | +// RUN: %clang -E -P -x c %S/stability-stdlib-abi-without-asserts.test -o - > %t.tmp/stability-stdlib-abi.swift.expected |
| 5 | +// RUN: %clang -E -P -x c %S/stability-stdlib-abi-with-asserts.test -o - >> %t.tmp/stability-stdlib-abi.swift.expected |
| 6 | +// RUN: %clang -E -P -x c %t.tmp/stability-stdlib-abi.swift.expected -o - | sed '/^\s*$/d' | sort > %t.tmp/stability-stdlib-abi.swift.expected.sorted |
| 7 | +// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' | sort > %t.tmp/changes.txt.tmp |
| 8 | +// RUN: diff -u %t.tmp/stability-stdlib-abi.swift.expected.sorted %t.tmp/changes.txt.tmp |
| 9 | + |
1 | 10 | // Welcome, Build Wrangler! |
2 | 11 | // |
3 | 12 | // A failure in this test indicates that there is a potential ABI breaking |
4 | 13 | // change in the Standard Library. If you observe a failure, please reach out to |
5 | 14 | // the Standard Library team directly to make sure we resolve this quickly! |
6 | 15 | // |
7 | | -// Instead of XFAILing this test, please consider extending the list of expected |
8 | | -// changes at the bottom. (In addition to ignoring the current set of ABI breaks, |
9 | | -// XFAILing this test also silences any future ABI breaks that may land on this |
10 | | -// branch, which isn't ideal.) |
| 16 | +// Please DO NOT XFAIL THIS TEST. In addition to ignoring the current set of ABI |
| 17 | +// breaks, XFAILing this test also silences any future ABI breaks that may land |
| 18 | +// on this branch, which isn't ideal. |
11 | 19 | // |
12 | | -// You can find a diff of what needs to be added in the output of the failed |
13 | | -// test run. The order of lines doesn't matter, and you can also include |
14 | | -// comments to refer to any bugs you filed. |
| 20 | +// Instead, consider extending the list of expected changes at the bottom. You |
| 21 | +// can find a diff of what needs to be added in the output of the failed test |
| 22 | +// run. The order of lines doesn't matter, and you can also include comments to |
| 23 | +// refer to any bugs you filed. |
15 | 24 | // |
16 | 25 | // Thanks! -- Your friendly stdlib engineers |
17 | 26 |
|
18 | | -// REQUIRES: OS=macosx |
19 | 27 | // REQUIRES: swift_stdlib_asserts |
20 | 28 |
|
21 | 29 | // SR-13362 |
22 | | -// This currently fails on non-Intel architectures due to no baseline being |
23 | | -// available and it is not possible to filter across architectures in the |
24 | | -// output. |
25 | | -// XFAIL: CPU=arm64 || CPU=arm64e |
26 | | - |
27 | | -// RUN: %empty-directory(%t.tmp) |
28 | | -// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk |
29 | | -// RUN: %api-digester -diagnose-sdk -module Swift -o %t.tmp/changes.txt -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -abi -avoid-location |
30 | | -// RUN: %clang -E -P -x c %S/stability-stdlib-abi-without-asserts.test -o - > %t.tmp/stability-stdlib-abi.swift.expected |
31 | | -// RUN: %clang -E -P -x c %S/stability-stdlib-abi-with-asserts.test -o - >> %t.tmp/stability-stdlib-abi.swift.expected |
32 | | -// RUN: %clang -E -P -x c %t.tmp/stability-stdlib-abi.swift.expected -o - | sed '/^\s*$/d' | sort > %t.tmp/stability-stdlib-abi.swift.expected.sorted |
33 | | -// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' | sort > %t.tmp/changes.txt.tmp |
34 | | -// RUN: diff -u %t.tmp/stability-stdlib-abi.swift.expected.sorted %t.tmp/changes.txt.tmp |
| 30 | +// We currently only have a baseline for Intel CPUs on macOS. |
| 31 | +// REQUIRES: OS=macosx |
| 32 | +// REQUIRES: CPU=x86_64 |
35 | 33 |
|
36 | 34 | // The digester can incorrectly register a generic signature change when |
37 | 35 | // declarations are shuffled. rdar://problem/46618883 |
38 | 36 | // UNSUPPORTED: swift_evolve |
39 | 37 |
|
| 38 | +// *** DO NOT XFAIL THIS TEST *** (See comment above.) |
| 39 | + |
40 | 40 | Func _collectReferencesInsideObject(_:) is a new API without @available attribute |
41 | 41 | Func _loadDestroyTLSCounter() is a new API without @available attribute |
42 | 42 | Func _measureRuntimeFunctionCountersDiffs(objects:_:) is a new API without @available attribute |
|
0 commit comments