Skip to content

Commit c96205d

Browse files
committed
Store test content in a custom metadata section.
See also: swiftlang/swift#76698 Resolves #735.
1 parent b439448 commit c96205d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Documentation/ABI/TestContent.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ the testing library are stored in dedicated platform-specific sections:
2121

2222
| Platform | Binary Format | Section Name |
2323
|-|:-:|-|
24-
| macOS | Mach-O | `__DATA_CONST,__swift5_tests` |
25-
| iOS | Mach-O | `__DATA_CONST,__swift5_tests` |
26-
| watchOS | Mach-O | `__DATA_CONST,__swift5_tests` |
27-
| tvOS | Mach-O | `__DATA_CONST,__swift5_tests` |
28-
| visionOS | Mach-O | `__DATA_CONST,__swift5_tests` |
29-
| Linux | ELF | `PT_NOTE`[^1] |
30-
| FreeBSD | ELF | `PT_NOTE`[^1] |
31-
| Android | ELF | `PT_NOTE`[^1] |
24+
| macOS, iOS, watchOS, tvOS, visionOS | Mach-O | `__DATA_CONST,__swift5_tests` |
25+
| Linux, FreeBSD, Android | ELF | `PT_NOTE`[^1] |
3226
| WASI | Statically Linked | `swift5_tests` |
3327
| Windows | PE/COFF | `.sw5test` |
3428

@@ -66,6 +60,11 @@ struct SWTTestContent {
6660
};
6761
```
6862

63+
This structure may grow in the future as needed. Check the `n_descsz` field of
64+
the record header to determine if there are additional fields present. Do not
65+
assume that the size of this structure will remain fixed over time or that all
66+
discovered test content records are the same size.
67+
6968
#### The accessor field
7069

7170
The function `accessor` is a C function whose signature in Swift can be restated

0 commit comments

Comments
 (0)