diff --git a/src/samples/test-sample/test.cpp b/src/samples/test-sample/test.cpp index 03b41b4f..520ceab3 100644 --- a/src/samples/test-sample/test.cpp +++ b/src/samples/test-sample/test.cpp @@ -729,7 +729,10 @@ int main(const int argc, const char* argv[]) RUN_TEST(test_env, "Environment") RUN_TEST(test_exceptions, "Exceptions") RUN_TEST(test_native_exceptions, "Native Exceptions") - RUN_TEST(test_interrupts, "Interrupts") + if (!getenv("EMULATOR_ICICLE")) + { + RUN_TEST(test_interrupts, "Interrupts") + } RUN_TEST(test_tls, "TLS") RUN_TEST(test_socket, "Socket") RUN_TEST(test_apc, "APC") diff --git a/src/windows-emulator/process_context.cpp b/src/windows-emulator/process_context.cpp index 344f059c..a41abcf1 100644 --- a/src/windows-emulator/process_context.cpp +++ b/src/windows-emulator/process_context.cpp @@ -108,6 +108,13 @@ namespace } env_map[u"EMULATOR"] = u"1"; + + const auto* env = getenv("EMULATOR_ICICLE"); + if (env && (env == "1"sv || env == "true"sv)) + { + env_map[u"EMULATOR_ICICLE"] = u"1"; + } + env_map[u"COMPUTERNAME"] = u"momo"; env_map[u"USERNAME"] = u"momo"; env_map[u"SystemDrive"] = u"C:";