Skip to content

Commit

Permalink
Another attempt at killing JIT debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Jun 18, 2020
1 parent be82535 commit 92711ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ jobs:
- name: Destroy MSVC JIT (Fuck you Microsoft)
if: matrix.os == 'windows-latest'
run: |
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger
red add HKCU\Software\Microsoft\Windows\Windows Error Reporting\DontShowUI "1"
del C:/Windows/System32/vsjitdebugger.exe
# Install conan
- uses: LunarWatcher/install-conan@master
Expand Down
11 changes: 10 additions & 1 deletion tests/testSources/runner.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#include <filesystem>
#define CATCH_CONFIG_RUNNER
#include "catch2/catch.hpp"

#if defined(_WIN32) || defined(_WIN64)
#define THIS_IS_WINDOZE
#include <rtcapi.h>
#include <windows.h>
#endif
// This is the primary testing file. Specifically, this defines the entry point.
// It's also empty because Catch2 is super nice. All tests are defined in .cpp
// files, and it handles the rest of the clusterfuck setup. Really nice :D

int main(int argc, const char* argv[]) {
#ifdef THIS_IS_WINDOZE
DWORD dwMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(dwMode | SEM_NOGPFAULTERRORBOX);
#endif

const static auto directory = "./tests/raw/data";
// Start test; make sure the data directory isn't polluted
if (std::filesystem::exists(directory)) {
Expand Down

0 comments on commit 92711ec

Please sign in to comment.