ソースを参照

Remove runtime.GOOS checks that are redundant as of #305. (#308)

The test overrides $HOME now so the checks are not needed now.
Alexey Alexandrov 7 年 前
コミット
a8f279b795
共有1 個のファイルを変更した1 個の追加8 個の削除を含む
  1. 1
    8
      internal/driver/fetch_test.go

+ 1
- 8
internal/driver/fetch_test.go ファイルの表示

@@ -423,16 +423,9 @@ func TestHttpsInsecure(t *testing.T) {
423 423
 		Timeout:   10,
424 424
 		Symbolize: "remote",
425 425
 	}
426
-	rx := "Saved profile in"
427
-	if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") ||
428
-		runtime.GOOS == "android" {
429
-		// On iOS, $HOME points to the app root directory and is not writable.
430
-		// On Android, $HOME points to / which is not writable.
431
-		rx += "|Could not use temp dir"
432
-	}
433 426
 	o := &plugin.Options{
434 427
 		Obj: &binutils.Binutils{},
435
-		UI:  &proftest.TestUI{T: t, AllowRx: rx},
428
+		UI:  &proftest.TestUI{T: t, AllowRx: "Saved profile in"},
436 429
 	}
437 430
 	o.Sym = &symbolizer.Symbolizer{Obj: o.Obj, UI: o.UI}
438 431
 	p, err := fetchProfiles(s, o)