Repository navigation
Conversation
|
Review hints:
|
| #include "P_UnixPollDescriptor.h" | ||
| #include "P_Socks.h" | ||
| #include "P_CompletionUtil.h" | ||
| #include "P_NetVCTest.h" |
There was a problem hiding this comment.
Had to correct many improper dependencies on the fact that P_NetVCTest.h is included here and included Regression.h.
bneradt
left a comment
There was a problem hiding this comment.
Looks great. I just have a few minor comments.
| tr = Test.AddTestRun() | ||
| tr.Processes.Default.StartBefore(ts) | ||
| tr.Processes.Default.Command = ( | ||
| "N=60 ; while ((N > 0 )) ; do " + | ||
| "if [[ ! -f " + InProgressFilePathspec + " ]] ; then exit 0 ; fi ; sleep 1 ; let N=N-1 ; " + | ||
| "done ; echo 'TIMEOUT' ; exit 1" | ||
| ) | ||
| tr.Processes.Default.ReturnCode = 0 | ||
| tr.StillRunningAfter = ts |
There was a problem hiding this comment.
Can we use the FileNotExists When function for this? I think it would look something like:
...
tr.Processes.Default.Command = "echo 'Wait for progress file to be deleted'"
tr.Processes.Default.Ready = When.FileNotExists(InProgressFilePathspec)
...
There was a problem hiding this comment.
How do you control the maximum wait time?
There was a problem hiding this comment.
I believe you should be able to use StartupTimeout.
There was a problem hiding this comment.
FileNotExists() seems to always return True. I am running autest 1.7.3, is this a bug in that version?
|
|
||
| namespace Au_UT | ||
| { | ||
| extern char const Debug_tag[]; |
There was a problem hiding this comment.
Can this be a constexpr std::string_view defined in place here?
There was a problem hiding this comment.
This could be misleading as TSDebug requires a null-terminated C-style string.
b2ba84a to
0d232b6
Compare
|
@SolidWallOfCode you may want to look at this as it involves a strategy of moving some unit testing from Catch to Au testing. |
|
@zwoop Can you please take a look at this? |
I converted this to an Au test rather than a Catch test, because linking the Catch test executable was too difficult.