-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect test termination condition in TestCommand subclasses. (#…
…7428) The logic in NextTest was doing the following: 1. Start the test at mTestIndex. 2. Increment mTestIndex. 3. If mTestCount == mTestIndex (i.e. no more tests to run), start shutdown (by calling SetCommandExitStatus, which unblocks the shutdown sequence).. This failed when running the last test: we would start the test, increment mTestIndex, then hit that mTestCount condition and immediately start shutdown, before waiting for the last test to complete. The fix is to test for the "no more tests to run" condition on entry to NextTest. This way the last test runs compeletely, and when it's done and calls NextTest we go ahead and shut down.
- Loading branch information
1 parent
5757bf9
commit 4021443
Showing
2 changed files
with
24 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