File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 77* .c
88* .nupkg
99test * .xml
10+ test * _results.txt
1011build
1112packages
1213Debug
Original file line number Diff line number Diff line change @@ -20,5 +20,6 @@ goto :eof
2020
2121:run_test
2222if not " %target_version% " == " " set args = -o %1 -%target_version% .xml -r junit
23- _build\%target_platform% \%target_configuration% \%1 .exe %args%
23+ 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.
24+ _build\%target_platform% \%target_configuration% \%1 .exe %args% > %1 _results.txt && type %1 _results.txt || type %1 _results.txt >& 2
2425goto :eof
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ int main(int argc, char * argv[])
88 using namespace winrt ;
99
1010 init_apartment ();
11- std::set_terminate ([]{ ExitProcess (1 ); });
11+ std::set_terminate ([]{ reportFatal ( " Abnormal termination " ); ExitProcess (1 ); });
1212 int const result = Catch::Session ().run (argc, argv);
1313
1414 // Completely unnecessary in an app, but useful for testing clear_factory_cache behavior.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ using namespace winrt;
77int main (int const argc, char ** argv)
88{
99 init_apartment ();
10- std::set_terminate ([] { ExitProcess (1 ); });
10+ std::set_terminate ([] { reportFatal ( " Abnormal termination " ); ExitProcess (1 ); });
1111 return Catch::Session ().run (argc, argv);
1212}
1313
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ using namespace winrt;
77int main (int const argc, char ** argv)
88{
99 init_apartment ();
10- std::set_terminate ([] { ExitProcess (1 ); });
10+ std::set_terminate ([] { reportFatal ( " Abnormal termination " ); ExitProcess (1 ); });
1111 return Catch::Session ().run (argc, argv);
1212}
1313
You can’t perform that action at this time.
0 commit comments