aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/config_test.go
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-10 07:25:31 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-10 07:25:31 +0000
commit904b3e949a93a8953db41e41b256a5b27debeed4 (patch)
treeb0522edde1d3c5356c95eb1ee2eae3e87befa1f3 /compiler_wrapper/config_test.go
parent4e4201457e5f51a132101c611c79ccff9f713c8b (diff)
parent882a18888febb9cb0b9d6c6069498cbc4aa30f88 (diff)
downloadtoolchain-utils-904b3e949a93a8953db41e41b256a5b27debeed4.tar.gz
Change-Id: I173027e1513f8b33f7aec083bf3757087435e515
Diffstat (limited to 'compiler_wrapper/config_test.go')
-rw-r--r--compiler_wrapper/config_test.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/compiler_wrapper/config_test.go b/compiler_wrapper/config_test.go
index 5492a1bb..86a78928 100644
--- a/compiler_wrapper/config_test.go
+++ b/compiler_wrapper/config_test.go
@@ -38,7 +38,6 @@ func TestRealConfigWithUseCCacheFlag(t *testing.T) {
}
}
-/* TODO: Re-enable this, when llvm-next is different than llvm
func TestRealConfigWithUseLLvmFlag(t *testing.T) {
resetGlobals()
defer resetGlobals()
@@ -50,7 +49,7 @@ func TestRealConfigWithUseLLvmFlag(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if isUsingLLvmNext(cfg) {
+ if cfg.useLlvmNext {
t.Fatal("UseLLvmNext: Expected not to be used")
}
@@ -60,7 +59,7 @@ func TestRealConfigWithUseLLvmFlag(t *testing.T) {
t.Fatal(err)
}
- if !isUsingLLvmNext(cfg) {
+ if !cfg.useLlvmNext {
t.Fatal("UseLLvmNext: Expected to be used")
}
@@ -69,7 +68,6 @@ func TestRealConfigWithUseLLvmFlag(t *testing.T) {
t.Fatalf("UseLlvmNext: Expected an error, got none")
}
}
-*/
func TestRealConfigWithConfigNameFlag(t *testing.T) {
resetGlobals()
@@ -128,16 +126,6 @@ func isSysrootHardened(cfg *config) bool {
return false
}
-// TODO: Update this with correct flag when we change llvm-next.
-func isUsingLLvmNext(cfg *config) bool {
- for _, arg := range cfg.clangFlags {
- if arg == "-Wno-reorder-init-list" {
- return true
- }
- }
- return false
-}
-
func resetGlobals() {
// Set all global variables to a defined state.
UseLlvmNext = "unknown"