Add sanitizer tests for musl

Add tests that verify sanitizer behaviors for musl.

Test: sanitize_test.go
Change-Id: I1f0a51cc103ac14d1738cb223e216ee0e32d8550
This commit is contained in:
Colin Cross
2023-02-15 12:20:19 -08:00
parent 9e87f0a6ea
commit 5dc62c9456
5 changed files with 164 additions and 23 deletions

View File

@@ -16,6 +16,7 @@ package android
import (
"fmt"
"runtime"
"strings"
"testing"
)
@@ -379,6 +380,12 @@ func FixtureModifyProductVariables(mutator func(variables FixtureProductVariable
})
}
var PrepareForSkipTestOnMac = newSimpleFixturePreparer(func(fixture *fixture) {
if runtime.GOOS != "linux" {
fixture.t.Skip("Test is only supported on linux.")
}
})
// PrepareForDebug_DO_NOT_SUBMIT puts the fixture into debug which will cause it to output its
// state before running the test.
//