forked from nbauernfeind/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++ client: process the envp argument to main instead of calling gete…
…nv() (deephaven#5393) * C++ client: process the envp argument to main instead of calling getenv() * Respond to review feedback
- Loading branch information
Showing
3 changed files
with
76 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
/* | ||
* Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
*/ | ||
#define CATCH_CONFIG_MAIN | ||
#define CATCH_CONFIG_RUNNER | ||
#include "deephaven/third_party/catch.hpp" | ||
#include "deephaven/tests/test_util.h" | ||
|
||
using deephaven::client::tests::GlobalEnvironmentForTests; | ||
|
||
int main(int argc, char *argv[], char **envp) { | ||
// Process envp so we don't have to call getenv(), which Windows complains about. | ||
GlobalEnvironmentForTests::Init(envp); | ||
return Catch::Session().run(argc, argv); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters