Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchos testing fixes #1605

Merged
merged 7 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,24 +193,24 @@ steps:
- logs/*

- label: watchOS 8 unit tests
timeout_in_minutes: 10
timeout_in_minutes: 60
agents:
queue: opensource-arm-mac-cocoa-12
env:
DEVELOPER_DIR: /Applications/Xcode13.4.app
DEVELOPER_DIR: /Applications/Xcode14.0.app
commands:
- ./scripts/run-unit-tests.sh PLATFORM=watchOS OS=8.3
- ./scripts/run-unit-tests.sh PLATFORM=watchOS OS=8.3 SDK=watchsimulator9.0
artifact_paths:
- logs/*

- label: watchOS 7 unit tests
timeout_in_minutes: 10
timeout_in_minutes: 60
agents:
queue: opensource-arm-mac-cocoa-12
env:
DEVELOPER_DIR: /Applications/Xcode13.4.app
DEVELOPER_DIR: /Applications/Xcode14.0.app
commands:
- ./scripts/run-unit-tests.sh PLATFORM=watchOS OS=7.4
- ./scripts/run-unit-tests.sh PLATFORM=watchOS OS=7.4 SDK=watchsimulator9.0
artifact_paths:
- logs/*

Expand Down
5 changes: 4 additions & 1 deletion Bugsnag/Helpers/BSGRunContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ static void InitRunContext(void) {
}

bsg_runContext->bootTime = GetBootTime();


// Make sure the images list is populated.
bsg_mach_headers_initialize();

BSG_Mach_Header_Info *image = bsg_mach_headers_get_main_image();
if (image && image->uuid) {
uuid_copy(bsg_runContext->machoUUID, image->uuid);
Expand Down
3 changes: 1 addition & 2 deletions Tests/KSCrashTests/KSCrashState_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ @interface bsg_kscrashstate_Tests : FileBasedTestCase

@implementation bsg_kscrashstate_Tests

#if TARGET_OS_OSX || TARGET_OS_TV // Not needed on iOS because there the tests are injected into a host app
#if TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_WATCH // Not needed on iOS because there the tests are injected into a host app

- (void)setUp
{

struct BSGRunContext *oldContext = bsg_runContext;
static struct BSGRunContext context = {0};
context.isForeground = YES; // These tests assume applicationState == .active
Expand Down
Loading