diff options
author | Gil <mcg@google.com> | 2017-11-17 16:30:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 16:30:57 -0800 |
commit | 4a1f29b9b3f742cc722af9f5f2a77e3aad89022e (patch) | |
tree | 7effb8ad2622e87f9f0f044bbe5f5a5add221d9c /Firestore/Example/Tests/Tests-Info.plist | |
parent | 5fbe71052de048a15f44476115a49e1958e70691 (diff) |
Use NSPrincipalClass as the most reliable way to find tests. (#471)
Unfortunately, using __attribute__((constructor)) doesn't really work
because it races with all other constructors run pre-main. As a result
it's possible for a test's constructor to run after registration.
NSPrincipalClass gets instantiated only after all constructors have run.
Diffstat (limited to 'Firestore/Example/Tests/Tests-Info.plist')
-rw-r--r-- | Firestore/Example/Tests/Tests-Info.plist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Firestore/Example/Tests/Tests-Info.plist b/Firestore/Example/Tests/Tests-Info.plist index 169b6f7..5b27204 100644 --- a/Firestore/Example/Tests/Tests-Info.plist +++ b/Firestore/Example/Tests/Tests-Info.plist @@ -16,6 +16,8 @@ <string>1.0</string> <key>CFBundleSignature</key> <string>????</string> + <key>NSPrincipalClass</key> + <string>FSTGoogleTestsPrincipal</string> <key>CFBundleVersion</key> <string>1</string> </dict> |