Revert "bp2build conversion for Sanitize.Integer_overflow"
Revert submission 2277186-ubsan_bp2build Reason for revert: b/260630869 broke mixed_droid Reverted Changes: Idd9b33e53:bp2build conversion for Sanitize.Integer_overflow I0d636e439:Add Sanitizer libs up the dependency tree If113de7bc:Introduce toolchain features for sanitizers Change-Id: Idf7e7b62f6fb6d4ff92341cc4c9c4b7426b70951
This commit is contained in:
committed by
Gerrit Code Review
parent
548fc5dcec
commit
0ead79bd11
@@ -789,82 +789,3 @@ func TestCcBinaryWithSyspropSrcsSomeConfigs(t *testing.T) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestCcBinaryWithIntegerOverflowProperty(t *testing.T) {
|
||||
runCcBinaryTestCase(t, ccBinaryBp2buildTestCase{
|
||||
description: "cc_binary with integer overflow property specified",
|
||||
blueprint: `
|
||||
{rule_name} {
|
||||
name: "foo",
|
||||
sanitize: {
|
||||
integer_overflow: true,
|
||||
},
|
||||
}`,
|
||||
targets: []testBazelTarget{
|
||||
{"cc_binary", "foo", AttrNameToString{
|
||||
"local_includes": `["."]`,
|
||||
"features": `["ubsan_integer_overflow"]`,
|
||||
}},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestCcBinaryWithMiscUndefinedProperty(t *testing.T) {
|
||||
runCcBinaryTestCase(t, ccBinaryBp2buildTestCase{
|
||||
description: "cc_binary with miscellaneous properties specified",
|
||||
blueprint: `
|
||||
{rule_name} {
|
||||
name: "foo",
|
||||
sanitize: {
|
||||
misc_undefined: ["undefined", "nullability"],
|
||||
},
|
||||
}`,
|
||||
targets: []testBazelTarget{
|
||||
{"cc_binary", "foo", AttrNameToString{
|
||||
"local_includes": `["."]`,
|
||||
"features": `[
|
||||
"ubsan_undefined",
|
||||
"ubsan_nullability",
|
||||
]`,
|
||||
}},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestCcBinaryWithUBSanPropertiesArchSpecific(t *testing.T) {
|
||||
runCcBinaryTestCase(t, ccBinaryBp2buildTestCase{
|
||||
description: "cc_binary has correct feature select when UBSan props are specified in arch specific blocks",
|
||||
blueprint: `
|
||||
{rule_name} {
|
||||
name: "foo",
|
||||
sanitize: {
|
||||
misc_undefined: ["undefined", "nullability"],
|
||||
},
|
||||
target: {
|
||||
android: {
|
||||
sanitize: {
|
||||
misc_undefined: ["alignment"],
|
||||
},
|
||||
},
|
||||
linux_glibc: {
|
||||
sanitize: {
|
||||
integer_overflow: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}`,
|
||||
targets: []testBazelTarget{
|
||||
{"cc_binary", "foo", AttrNameToString{
|
||||
"local_includes": `["."]`,
|
||||
"features": `[
|
||||
"ubsan_undefined",
|
||||
"ubsan_nullability",
|
||||
] + select({
|
||||
"//build/bazel/platforms/os:android": ["ubsan_alignment"],
|
||||
"//build/bazel/platforms/os:linux": ["ubsan_integer_overflow"],
|
||||
"//conditions:default": [],
|
||||
})`,
|
||||
}},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user