pkg/cover: skip test on akaros

Akaros compiler does not support coverage.
This commit is contained in:
Dmitry Vyukov 2020-06-02 13:15:38 +02:00
parent d56234396c
commit 2b26ad000f

View File

@ -129,7 +129,7 @@ int main() {}
errText = strings.ReplaceAll(errText, "", "'") errText = strings.ReplaceAll(errText, "", "'")
errText = strings.ReplaceAll(errText, "", "'") errText = strings.ReplaceAll(errText, "", "'")
if strings.Contains(errText, "error: unrecognized command line option '-fsanitize-coverage=trace-pc'") && if strings.Contains(errText, "error: unrecognized command line option '-fsanitize-coverage=trace-pc'") &&
os.Getenv("CI") == "" { (os.Getenv("SYZ_BIG_ENV") == "" || target.OS == "akaros") {
t.Skip("skipping test, -fsanitize-coverage=trace-pc is not supported") t.Skip("skipping test, -fsanitize-coverage=trace-pc is not supported")
} }
t.Fatal(err) t.Fatal(err)