mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
tests: add missing test cleanup (#4163)
- Changes BuildFixture so that fixtures are not built multiple times - Add some missing calls to AddPathToRemove
This commit is contained in:
committed by
GitHub
parent
fa07b65188
commit
d44aa4b65a
@ -85,6 +85,7 @@ func stripAndCopyDebugInfo(f protest.Fixture, t *testing.T) {
|
||||
if err := copyCmd.Run(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
protest.AddPathToRemove(f.Path + ".debug")
|
||||
|
||||
// Strip the original binary of the debug information.
|
||||
stripCmd := exec.Command("strip", "--strip-debug", "--strip-unneeded", name)
|
||||
|
||||
Reference in New Issue
Block a user