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:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user