Improve testing coverage, remove unused code

a) Add further tests to CI to cover most features. This uncovered a potential race
in case setoption was sent between two searches. As the UCI protocol requires
this sent to be went the engine is not searching, setoption now ensures that
this is the case.

b) Remove some unused code

closes https://github.com/official-stockfish/Stockfish/pull/4730

No functional change
This commit is contained in:
Joost VandeVondele
2023-08-09 15:34:53 +02:00
committed by Stéphane Nicolet
parent 0d2ddb81ef
commit 8192945870
5 changed files with 52 additions and 81 deletions

View File

@@ -98,6 +98,8 @@ namespace {
void setoption(istringstream& is) {
Threads.main()->wait_for_search_finished();
string token, name, value;
is >> token; // Consume the "name" token