aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/android_config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/android_config_test.go')
-rw-r--r--compiler_wrapper/android_config_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/compiler_wrapper/android_config_test.go b/compiler_wrapper/android_config_test.go
index 6c62c35a..57669f8c 100644
--- a/compiler_wrapper/android_config_test.go
+++ b/compiler_wrapper/android_config_test.go
@@ -12,6 +12,23 @@ import (
const androidGoldenDir = "testdata/android_golden"
+func TestAndroidConfigDoesNotSpecifyCrashDir(t *testing.T) {
+ withTestContext(t, func(ctx *testContext) {
+ useLlvmNext := false
+ useCCache := false
+ cfg, err := getConfig("android", useCCache, useLlvmNext, "123")
+ if err != nil {
+ t.Fatal(err)
+ }
+ ctx.updateConfig(cfg)
+
+ cmd := ctx.must(callCompiler(ctx, ctx.cfg, ctx.newCommand(clangX86_64, mainCc)))
+ if err := verifyArgCount(cmd, 0, "-fcrash-diagnostics-dir=.*"); err != nil {
+ t.Error(err)
+ }
+ })
+}
+
func TestAndroidConfig(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
useLlvmNext := false