test: enable virtiofs tests and enable WSLG during testing (#14387)

* test: enable virtiofs tests and enable WSLG during testing * test fix --------- Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

Ben Hillis committed Mar 10, 2026 at 12:34 UTC 3167b72018cadba182ac0e0a8ca973c7b2f7cdaf
3 files changed +5 -8
test/windows/Common.cpp
+1 -3
@@ -1450,8 +1450,6 @@ std::wstring LxssGenerateTestConfig(TestConfigDefaults Default)
1450 return value;
1451 };
1452
1453 - // TODO: Reset guiApplications to true by default once the virtio hang is solved.
1454 -
1453 std::wstring newConfig =
1454 L"[wsl2]\n"
1455 L"crashDumpFolder=" +
@@ -1464,7 +1462,7 @@ std::wstring LxssGenerateTestConfig(TestConfigDefaults Default)
1462 EscapePath(kernelLogs) +
1463 L"\n"
1464 L"telemetry=false\n" +
1467 - boolOptionToString(L"safeMode", Default.safeMode, false) + boolOptionToString(L"guiApplications", Default.guiApplications, false) +
1465 + boolOptionToString(L"safeMode", Default.safeMode, false) + boolOptionToString(L"guiApplications", Default.guiApplications, true) +
1466 L"earlyBootLogging=false\n" + networkingModeToString(Default.networkingMode) + drvFsModeToString(Default.drvFsMode);
1467
1468 if (Default.kernel.has_value())
test/windows/DrvFsTests.cpp
+2 -4
@@ -1341,12 +1341,10 @@ class WSL1 : public DrvFsTests
1341
1342 WSL2_DRVFS_TEST_CLASS(Plan9);
1343
1344 +WSL2_DRVFS_TEST_CLASS(VirtioFs);
1345 +
1346 // Disabled while an issue with the 6.1 Linux kernel causing disk corruption is investigated.
1347 // TODO: Enable again once the issue is resolved
1348 // WSL2_DRVFS_TEST_CLASS(Virtio9p);
1349
1348 -// Disabled because it causes too much noise.
1349 -// TODO: Enable again once virtiofs is stable
1350 -// WSL2_DRVFS_TEST_CLASS(VirtioFs);
1351 -
1350 } // namespace DrvFsTests
\ No newline at end of file
test/windows/UnitTests.cpp
+2 -1
@@ -271,6 +271,7 @@ class UnitTests
271 };
272
273 // Validate user sessions state with gui apps disabled.
274 + WslConfigChange config(LxssGenerateTestConfig({.guiApplications = false}));
275 {
276 validateUserSession();
277
@@ -284,7 +285,7 @@ class UnitTests
285
286 // Validate user sessions state with gui apps enabled.
287 {
287 - WslConfigChange config(LxssGenerateTestConfig({.guiApplications = true}));
288 + config.Update(LxssGenerateTestConfig({.guiApplications = true}));
289
290 validateUserSession();
291 auto [out, err] = LxsstuLaunchWslAndCaptureOutput(std::format(L"--user {} echo $DISPLAY", LXSST_TEST_USERNAME));