diff options
| author | Stefan Boberg <[email protected]> | 2021-09-20 10:15:12 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-20 10:15:12 +0200 |
| commit | 8d3024a7e09246e44bf6d9ea14a36e6b03032e85 (patch) | |
| tree | c18c2536d108378e5cddcac21398efd8d28e437d /zenserver/vfs.cpp | |
| parent | Added testing.h to wrap doctest.h (diff) | |
| download | zen-8d3024a7e09246e44bf6d9ea14a36e6b03032e85.tar.xz zen-8d3024a7e09246e44bf6d9ea14a36e6b03032e85.zip | |
It's not possible to compile out tests
Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
Diffstat (limited to 'zenserver/vfs.cpp')
| -rw-r--r-- | zenserver/vfs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zenserver/vfs.cpp b/zenserver/vfs.cpp index 86e265b20..b98801116 100644 --- a/zenserver/vfs.cpp +++ b/zenserver/vfs.cpp @@ -532,7 +532,7 @@ retry: } else if (hRes == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) { - throw zen::WindowsException(hRes, "Failed to initialize root placeholder"); + ThrowSystemException(hRes, "Failed to initialize root placeholder"); } // Ignore error, problems will be reported below anyway |