namespace sal::systools
{ // Create a desktop, to avoid popups interfering with active user session, because we don't use svp // vcl plugin on Windows for unit testing. Set LIBO_TEST_DEFAULT_DESKTOP environment variable to any // value when running the unit test process, to avoid use of a separate desktop. void maybeCreateTestDesktop()
{ if (getenv("LIBO_TEST_DEFAULT_DESKTOP") == nullptr)
{ if (HDESK hDesktop
= CreateDesktopW(L"LIBO_TEST_DESKTOP", nullptr, nullptr, 0, GENERIC_ALL, nullptr))
SetThreadDesktop(hDesktop);
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.