summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2021-05-04 22:16:53 -0700
committerDavid Anderson <dvander@google.com>2021-05-04 22:21:08 -0700
commit1de6c16ad72aade9edcac403a31ac7eb2426be76 (patch)
tree3a10d5f8ccd598ec0a3d56872ddecd4c07bc977c /trusty/coverage/coverage_test.cpp
parent6939583deba259e59038eb4597cb692e5778725d (diff)
Ensure vts_libsnapshot_test will pass after being interrupted.
We try to clean up previous test runs, but this can crash since we haven't opened fake-super yet. Refactor the harness so we always open fake-super if it exists. If it does, we'll delete and recreate it after cleanup. If it doesn't, we'll create it immediately. It's still possible that cleanup can fail: If interrupted during a merge, libsnapshot does not allow cleanup until the merge completes. The test harness doesn't bother handling this case yet. Bug: 187151854 Test: vts_libsnapshot_test, ctrl+c, run again Change-Id: I58a7094336a391cff493a31e4f80d8c8b1b166f8
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions