Skip to content

Unstable unit test: System.Windows.Forms.UITests.ListViewTests.ListView_Tile_... #13291

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

Open
LeafShi1 opened this issue Apr 11, 2025 · 1 comment
Assignees
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)

Comments

@LeafShi1
Copy link
Member

LeafShi1 commented Apr 11, 2025

Related #11227

Test

All of the tests about ListView Tile under System.Windows.Forms.UITests.ListViewTests

Issue description

  • All of the failure occurs in method UpdateTileView and only failed in windows_x86

nint retval = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
Debug.Assert(retval != 0, "LVM_SETTILEVIEWINFO failed");

   at System.ThrowingTraceListener.Fail(String message, String detailMessage) in /_/src/Common/tests/TestUtilities/ThrowingTraceListener.cs:line 12
   at System.Diagnostics.TraceInternal.Fail(String message, String detailMessage)
   at System.Diagnostics.TraceInternal.TraceProvider.Fail(String message, String detailMessage)
   at System.Diagnostics.Debug.Fail(String message, String detailMessage)
   at System.Diagnostics.Debug.Assert(Boolean condition, String message)
   at System.Windows.Forms.ListView.UpdateTileView() in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 5810
   at System.Windows.Forms.ListView.set_View(View value) in /_/src/System.Windows.Forms/System/Windows/Forms/Controls/ListView/ListView.cs:line 1835
   at System.Windows.Forms.UITests.ListViewTests.InitializeTileList(ListView listView, Int32 columnCount, Int32 subItemsCount, Size tileSize) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 548
   at System.Windows.Forms.UITests.ListViewTests.<>c__DisplayClass6_0.<ListView_Tile_GetChildCount_ReturnsExpectedAsync>b__0(Form form, ListView listView) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 190
   at System.Windows.Forms.UITests.ControlTestBase.<>c__DisplayClass32_0`1.<<RunFormAsync>b__0>d.MoveNext() in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 317
--- End of stack trace from previous location ---
   at System.Windows.Forms.UITests.ControlTestBase.RunFormAsync[T](Func`1 createDialog, Func`3 testDriverAsync) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 343
   at System.Windows.Forms.UITests.ControlTestBase.RunSingleControlTestAsync[T](Func`3 testDriverAsync, Func`1 createControl, Func`1 createForm) in /_/src/test/integration/UIIntegrationTests/Infra/ControlTestBase.cs:line 246
   at System.Windows.Forms.UITests.ListViewTests.RunTestAsync(Func`3 runTest) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 567
   at System.Windows.Forms.UITests.ListViewTests.ListView_Tile_GetChildCount_ReturnsExpectedAsync(Int32 columnCount, Int32 subItemsCount, Int32 width, Int32 height, Int32 expected) in /_/src/test/integration/UIIntegrationTests/ListViewTests.cs:line 188
--- End of stack trace from previous location ---
@LeafShi1 LeafShi1 added the untriaged The team needs to look at this issue in the next triage label Apr 11, 2025
@LeafShi1 LeafShi1 added test-bug Problem in test source code (most likely) disabled-test Tracking tests that have been disabled to prevent run failures. and removed area-Interop untriaged The team needs to look at this issue in the next triage labels Apr 11, 2025
Tanya-Solyanik pushed a commit that referenced this issue Apr 21, 2025
…olumn_Does_Not_Alter_CheckBoxesAsync (#13294)

Tracking the follow up investigation in #13288, #13291
@Tanya-Solyanik
Copy link
Contributor

Tanya-Solyanik commented Apr 21, 2025

@LeafShi1 - Could you please experiment with putting this test into a new synchronous collection and see if this test passes in CI over a week or two? But do it after the Preview4 snap is complete, I don't want to destabilize preview4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants