Skip to content

Commit

Permalink
Remove async from the main function for the time being.
Browse files Browse the repository at this point in the history
This is causing some of our tests to terminate abnormally with an error out of the Swift runtime: "freed pointer was not the last allocation". We're going to need `async` eventually to support swift-testing, but in the meantime, this fixes the broken projects while I investigate further.

PiperOrigin-RevId: 662923954
  • Loading branch information
allevato authored and swiple-rules-gardener committed Aug 14, 2024
1 parent 5aa34d4 commit 9fb1eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test_discoverer/TestDiscoverer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct TestDiscoverer: ParsableCommand {
\(availabilityAttribute)
@main
struct Main {
static func main() async {
static func main() {
do {
try XCTestRunner.run()
Expand Down

1 comment on commit 9fb1eaa

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.