Skip to content

Commit

Permalink
qt, test: Clean settings after tests
Browse files Browse the repository at this point in the history
A test suite should not leave any artifacts except for those explicitly
expected.
  • Loading branch information
hebasto committed Mar 5, 2024
1 parent 49cf635 commit 9a49175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,9 @@ int main(int argc, char* argv[])
} else {
qDebug("\nAll tests passed.\n");
}

QSettings settings;
settings.clear();

return num_test_failures;
}

0 comments on commit 9a49175

Please sign in to comment.