Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.c
*.nupkg
test*.xml
test*_results.txt
build
packages
Debug
Expand Down
3 changes: 2 additions & 1 deletion run_tests.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ goto :eof

:run_test
if not "%target_version%"=="" set args=-o %1-%target_version%.xml -r junit
_build\%target_platform%\%target_configuration%\%1.exe %args%
rem Buffer output and redirect to stdout/stderr depending whether the test executable exits successfully. Pipeline will fail if there's any output to stderr.
_build\%target_platform%\%target_configuration%\%1.exe %args% > %1_results.txt && type %1_results.txt || type %1_results.txt >&2
goto :eof
2 changes: 1 addition & 1 deletion test/old_tests/UnitTests/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main(int argc, char * argv[])
using namespace winrt;

init_apartment();
std::set_terminate([]{ ExitProcess(1); });
std::set_terminate([]{ reportFatal("Abnormal termination"); ExitProcess(1); });
int const result = Catch::Session().run(argc, argv);

// Completely unnecessary in an app, but useful for testing clear_factory_cache behavior.
Expand Down
2 changes: 1 addition & 1 deletion test/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace winrt;
int main(int const argc, char** argv)
{
init_apartment();
std::set_terminate([] { ExitProcess(1); });
std::set_terminate([] { reportFatal("Abnormal termination"); ExitProcess(1); });
return Catch::Session().run(argc, argv);
}

Expand Down
2 changes: 1 addition & 1 deletion test/test_win7/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace winrt;
int main(int const argc, char** argv)
{
init_apartment();
std::set_terminate([] { ExitProcess(1); });
std::set_terminate([] { reportFatal("Abnormal termination"); ExitProcess(1); });
return Catch::Session().run(argc, argv);
}

Expand Down