This repository was archived by the owner on Jan 10, 2025. It is now read-only.
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -126,17 +126,25 @@ public void Add (Assembly assembly, IList<string> fixtures)
126
126
}
127
127
}
128
128
129
+ protected void FlushConsole ( )
130
+ {
131
+ Console . Out . Flush ( ) ;
132
+ Console . Error . Flush ( ) ;
133
+ }
134
+
129
135
[ DllImport ( "libc" ) ]
130
136
static extern void exit ( int code ) ;
131
137
protected virtual void TerminateWithSuccess ( )
132
138
{
133
139
// For WatchOS we're terminating the extension, not the watchos app itself.
134
140
Console . WriteLine ( "Exiting test run with success" ) ;
141
+ FlushConsole ( ) ;
135
142
exit ( 0 ) ;
136
143
}
137
144
138
145
protected virtual void TerminateWithExitCode ( int exitCode )
139
146
{
147
+ FlushConsole ( ) ;
140
148
if ( exitCode == 0 ) {
141
149
TerminateWithSuccess ( ) ;
142
150
} else {
@@ -737,6 +745,7 @@ public UINavigationController NavigationController {
737
745
protected override void TerminateWithSuccess ( )
738
746
{
739
747
Console . WriteLine ( $ "Exiting test run with success") ;
748
+ FlushConsole ( ) ;
740
749
Selector selector = new Selector ( "terminateWithSuccess" ) ;
741
750
UIApplication . SharedApplication . PerformSelector ( selector , UIApplication . SharedApplication , 0 ) ;
742
751
}
You can’t perform that action at this time.
0 commit comments