aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/config_test.go')
-rw-r--r--compiler_wrapper/config_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler_wrapper/config_test.go b/compiler_wrapper/config_test.go
index 0e6b44c5..47432856 100644
--- a/compiler_wrapper/config_test.go
+++ b/compiler_wrapper/config_test.go
@@ -118,12 +118,7 @@ func TestRealConfigWithConfigNameFlag(t *testing.T) {
}
func isSysrootHardened(cfg *config) bool {
- for _, arg := range cfg.commonFlags {
- if arg == "-D_FORTIFY_SOURCE=2" {
- return true
- }
- }
- return false
+ return cfg.isHardened
}
func resetGlobals() {