mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13:24 +00:00
tests: make git-storage test more robust
The code was crashing if it couldn't reach the cloud, because then info.repo is NULL. Skip the test if that happens. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
322c3b55e6
commit
157b52aa6e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ static void localRemoteCleanup()
|
|||
|
||||
// this odd comparison is used to tell that we were able to connect to the remote repo;
|
||||
// in the error case we get the full cloudTestRepo name back as "branch"
|
||||
if (info.branch != randomBranch) {
|
||||
if (info.branch != randomBranch || info.repo == nullptr) {
|
||||
// dang, we weren't able to connect to the server - let's not fail the test
|
||||
// but just give up
|
||||
QSKIP("wasn't able to connect to server");
|
||||
|
|
Loading…
Add table
Reference in a new issue