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

Don't drop the warning/error code and type when overriding by binlog #109607

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

ilonatommy
Copy link
Member

Follow-up for #107280.

Is there a test for it?

No, but PR #109069 needs it for PInvokeTableGeneratorTests (it's checking specifically for e.g. warning.*native function.*sum.*varargs message, not native function.*sum.*varargs, etc). The change was tested there but got separated to decrease the number of changes in that PR.

Before the change:

output contains
Found a native function (sum) with varargs in variadic. Calling such functions is not supported, and will fail at runtime. Managed DllImports:

After the change:

output contains
/workspaces/runtime/artifacts/bin/dotnet-latest/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/10.0.0-dev/Sdk/WasmApp.Common.targets(793,5): warning WASM0001: Found a native function (sum) with varargs in variadic. Calling such functions is not supported, and will fail at runtime. Managed DllImports:

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture test-enhancement Improvements of test source code area-Infrastructure-mono labels Nov 7, 2024
@ilonatommy ilonatommy self-assigned this Nov 7, 2024
@ilonatommy ilonatommy merged commit bad7318 into dotnet:main Nov 7, 2024
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants