TerminalInputModifierKeyTests Don't work right on non-EN-US keyboard layouts #4949

Open
opened 2026-01-31 00:01:24 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Nov 12, 2019).

@j4james:

Windows Terminal version (if applicable): commit e2994ff

I'm used to having a few failures in the TerminalInputModifierKeyTests, and I know a couple of TabTests are blocked, but the rest of the tests I would usually expected to pass.

In case you care about the TerminalInputModifierKeyTests too, I think those are failing for me because I have a UK keyboard - the test dies on the VK_OEM_3 key. Here's a section of the test output where it fails:

Testing Key 0xc0
Expected, Buffer = "", ""
Verify: SUCCEEDED(StringCchLengthW(s_pwszInputExpected, STRSAFE_MAX_CCH, &cInputExpected))
Error: Verify: AreEqual(cInputExpected, records.size()): Verify expected and actual input array lengths matched. - Values (0, 1) [File: C:\Users\James\CPP\terminal\src\terminal\adapter\ut_adapter\inputTest.cpp, Function: Microsoft::Console::VirtualTerminal::InputTest::s_TerminalInputTestCallback, Line: 87]
TAEF: A crash with exception code 0xC0000409 occurred in module "ConAdapter.Unit.Tests.dll" in process "te.processhost.exe" (pid:13732).

This could be resolved by simply skipping that key the same way we skip VK_OEM_2, but it wouldn't surprise me if other international keyboards failed on other keys as well. I've been happy to accept that those are just expected failures for my particular setup.

(moved from #3536 )

Originally created by @zadjii-msft on GitHub (Nov 12, 2019). #### @j4james: > Windows Terminal version (if applicable): commit [e2994ff](https://github.com/microsoft/terminal/commit/e2994ff8908f5a8418f24f2e2954a6c163f910b6) > > > I'm used to having a few failures in the `TerminalInputModifierKeyTests`, and I know a couple of `TabTests` are blocked, but the rest of the tests I would usually expected to pass. > > > In case you care about the `TerminalInputModifierKeyTests` too, I think those are failing for me because I have a UK keyboard - the test dies on the `VK_OEM_3` key. Here's a section of the test output where it fails: > > ``` > Testing Key 0xc0 > Expected, Buffer = "", "" > Verify: SUCCEEDED(StringCchLengthW(s_pwszInputExpected, STRSAFE_MAX_CCH, &cInputExpected)) > Error: Verify: AreEqual(cInputExpected, records.size()): Verify expected and actual input array lengths matched. - Values (0, 1) [File: C:\Users\James\CPP\terminal\src\terminal\adapter\ut_adapter\inputTest.cpp, Function: Microsoft::Console::VirtualTerminal::InputTest::s_TerminalInputTestCallback, Line: 87] > TAEF: A crash with exception code 0xC0000409 occurred in module "ConAdapter.Unit.Tests.dll" in process "te.processhost.exe" (pid:13732). > ``` > > This could be resolved by simply skipping that key the same way we skip `VK_OEM_2`, but it wouldn't surprise me if other international keyboards failed on other keys as well. I've been happy to accept that those are just expected failures for my particular setup. (moved from #3536 )
claunia added the Product-ConhostIssue-BugArea-CodeHealth labels 2026-01-31 00:01:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4949