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

Fix failure to generate feature_tests #154

Merged
merged 4 commits into from
May 26, 2022
Merged

Fix failure to generate feature_tests #154

merged 4 commits into from
May 26, 2022

Conversation

Manishearth
Copy link
Contributor

we weren't testing that feature_tests was appropriately generated in CI, and it was failing since the selftype test was referring to non-opaque structs behind references. It's worth rewriting the test, but I don't want to do that here

@QnnOkabayashi
Copy link
Collaborator

Yeah we should rewrite these tests but this lgtm

Foo_box_destroy_registry.register(out, out.underlying)
return out;
})();
wasm.diplomat_free(x_diplomat_ptr, x_diplomat_bytes.length, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is gonna cause errors but we can fix later

get_bar() {
const diplomat_out = (() => {
const out = (() => {
const out = new Bar(wasm.Foo_get_bar(this.underlying));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also cursed cause we don't ensure that this isn't dropped

@QnnOkabayashi
Copy link
Collaborator

Once #12 gets merged we can make another PR to fix these tests again

@Manishearth Manishearth merged commit 248aa74 into main May 26, 2022
@Manishearth Manishearth deleted the quick-fix branch May 26, 2022 17:58
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.

2 participants