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

coroutines-test as an MPP #2965

Merged
merged 7 commits into from
Oct 8, 2021
Merged

Conversation

dkhalanskyjb
Copy link
Collaborator

This PR shouldn't change any behavior and instead only ensures that the test module can be built for all platforms. As is, it already requires introducing incompatibility, but, luckily, mostly in the interfaces that we decided to deprecate anyway.

Dispatchers.setMain isn't implemented for any targets other than JVM, all the other functionality seems to have been ported fine.

@@ -56,12 +56,11 @@ public final class kotlinx/coroutines/test/TestDispatchers {
}

public abstract interface class kotlinx/coroutines/test/UncaughtExceptionCaptor {
public abstract fun cleanupTestCoroutines ()V
public abstract fun cleanupTestCoroutinesCaptor ()V
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this rename, JS IR compiler just fails, and the native compiler complains

Member inherits different @Throws filters from UncaughtExceptionCaptor, DelayController

Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth reporting, because JS IR should ignore @Throws

Copy link
Collaborator

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -56,12 +56,11 @@ public final class kotlinx/coroutines/test/TestDispatchers {
}

public abstract interface class kotlinx/coroutines/test/UncaughtExceptionCaptor {
public abstract fun cleanupTestCoroutines ()V
public abstract fun cleanupTestCoroutinesCaptor ()V
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth reporting, because JS IR should ignore @Throws

kotlinx-coroutines-test/build.gradle.kts Outdated Show resolved Hide resolved
kotlinx-coroutines-test/build.gradle.kts Show resolved Hide resolved
@dkhalanskyjb dkhalanskyjb merged commit 2706a76 into develop Oct 8, 2021
@dkhalanskyjb dkhalanskyjb deleted the coroutines-test-multiplatform branch October 8, 2021 07:04
yorickhenning pushed a commit to yorickhenning/kotlinx.coroutines that referenced this pull request Oct 14, 2021
Change the build scripts and the file layout so that
kotlinx-coroutines-test is built on all platforms.
pablobaxter pushed a commit to pablobaxter/kotlinx.coroutines that referenced this pull request Sep 14, 2022
Change the build scripts and the file layout so that
kotlinx-coroutines-test is built on all platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants