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

Reenable TestDbgEng tests in M.D.DebugServices.UnitTests #3111

Open
Tracked by #3884
mikem8361 opened this issue Jun 12, 2022 · 0 comments
Open
Tracked by #3884

Reenable TestDbgEng tests in M.D.DebugServices.UnitTests #3111

mikem8361 opened this issue Jun 12, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@mikem8361
Copy link
Member

After upgrading to clrmd 2.1 in PR #3094 the DebugServices unit tests could no longer load dbgeng.dll:

xUnit.net Console Runner v2.4.2-pre.9+e627c231a5 (64-bit .NET 6.0.5)
  Discovering: Microsoft.Diagnostics.DebugServices.UnitTests
  Discovered:  Microsoft.Diagnostics.DebugServices.UnitTests
  Starting:    Microsoft.Diagnostics.DebugServices.UnitTests
    Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.RuntimeTests(host: DbgEng: D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp) [FAIL]
      System.DllNotFoundException : LoadLibrary(D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll) failed 127
      Stack Trace:
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(64,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.DbgEngController..ctor(String dbgengPath, String dumpPath, String sosPath)
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(26,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.GetTarget()
        /_/src/Microsoft.Diagnostics.TestHelpers/TestHost/TestHost.cs(30,0): at Microsoft.Diagnostics.TestHelpers.TestHost.get_Target()
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/DebugServicesTests.cs(260,0): at Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.RuntimeTests(TestHost host)
      Output:
        xunit.console Information: 0 : DbgEngController: D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp D:\a\_work\1\s\artifacts\bin\Windows_NT.x64.Debug\sos.dll
    Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.TargetTests(host: DbgEng: D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp) [FAIL]
      System.DllNotFoundException : LoadLibrary(D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll) failed 127
      Stack Trace:
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(64,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.DbgEngController..ctor(String dbgengPath, String dumpPath, String sosPath)
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(26,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.GetTarget()
        /_/src/Microsoft.Diagnostics.TestHelpers/TestHost/TestHost.cs(30,0): at Microsoft.Diagnostics.TestHelpers.TestHost.get_Target()
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/DebugServicesTests.cs(58,0): at Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.TargetTests(TestHost host)
      Output:
        xunit.console Information: 0 : DbgEngController: D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp D:\a\_work\1\s\artifacts\bin\Windows_NT.x64.Debug\sos.dll
    Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.ModuleTests(host: DbgEng: D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp) [FAIL]
      System.DllNotFoundException : LoadLibrary(D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll) failed 127
      Stack Trace:
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(64,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.DbgEngController..ctor(String dbgengPath, String dumpPath, String sosPath)
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(26,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.GetTarget()
        /_/src/Microsoft.Diagnostics.TestHelpers/TestHost/TestHost.cs(30,0): at Microsoft.Diagnostics.TestHelpers.TestHost.get_Target()
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/DebugServicesTests.cs(75,0): at Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.ModuleTests(TestHost host)
      Output:
        xunit.console Information: 0 : DbgEngController: D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp D:\a\_work\1\s\artifacts\bin\Windows_NT.x64.Debug\sos.dll
    Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.ThreadTests(host: DbgEng: D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp) [FAIL]
      System.DllNotFoundException : LoadLibrary(D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll) failed 127
      Stack Trace:
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(64,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.DbgEngController..ctor(String dbgengPath, String dumpPath, String sosPath)
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/TestDbgEng.cs(26,0): at Microsoft.Diagnostics.DebugServices.UnitTests.TestDbgEng.GetTarget()
        /_/src/Microsoft.Diagnostics.TestHelpers/TestHost/TestHost.cs(30,0): at Microsoft.Diagnostics.TestHelpers.TestHost.get_Target()
        /_/src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/DebugServicesTests.cs(212,0): at Microsoft.Diagnostics.DebugServices.UnitTests.DebugServicesTests.ThreadTests(TestHost host)
      Output:
        xunit.console Information: 0 : DbgEngController: D:\a\_work\1\s\.packages\cdb-sos\10.0.18362\runtimes\win-x64\native\dbgeng.dll D:\a\_work\1\s\.packages\testassets.windows.x64.5.0\1.0.257801\content\DualRuntimes\SOS.DualRuntimes.Heap.dmp D:\a\_work\1\s\artifacts\bin\Windows_NT.x64.Debug\sos.dll
  Finished:    Microsoft.Diagnostics.DebugServices.UnitTests
=== TEST EXECUTION SUMMARY ===
   Microsoft.Diagnostics.DebugServices.UnitTests  Total: 83, Errors: 0, Failed: 4, Skipped: 0, Time: 171.750s
=== COMMAND LINE ===
"D:\a\_work\1\s\.dotnet\dotnet.exe" exec --depsfile "D:\a\_work\1\s\artifacts\bin\Microsoft.Diagnostics.DebugServices.UnitTests\Debug\net60\Microsoft.Diagnostics.DebugServices.UnitTests.deps.json" --runtimeconfig "D:\a\_work\1\s\artifacts\bin\Microsoft.Diagnostics.DebugServices.UnitTests\Debug\net60\Microsoft.Diagnostics.DebugServices.UnitTests.runtimeconfig.json"  "D:\a\_work\1\s\.packages\xunit.runner.console/2.4.2-pre.9/tools/netcoreapp2.0/xunit.console.dll" "D:\a\_work\1\s\artifacts\bin\Microsoft.Diagnostics.DebugServices.UnitTests\Debug\net60\Microsoft.Diagnostics.DebugServices.UnitTests.dll" -noautoreporters -xml "D:\a\_work\1\s\artifacts\TestResults\Debug\Microsoft.Diagnostics.DebugServices.UnitTests_net60_x64.xml" -html "D:\a\_work\1\s\artifacts\TestResults\Debug\Microsoft.Diagnostics.DebugServices.UnitTests_net60_x64.html"  > "D:\a\_work\1\s\artifacts\log\Debug\Microsoft.Diagnostics.DebugServices.UnitTests_net60_x64.log" 2>&1
@mikem8361 mikem8361 added the testing Test work item label Jun 12, 2022
@mikem8361 mikem8361 self-assigned this Jun 12, 2022
@mikem8361 mikem8361 added this to the 7.0.0 milestone Jun 12, 2022
@tommcdon tommcdon modified the milestones: 7.0.0, 8.0.0 Oct 17, 2022
@tommcdon tommcdon modified the milestones: 8.0.0, Future Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants