• Home
  • Raw
  • Download

Lines Matching refs:err

34 	err := flags.Parse([]string{
38 if err != nil {
39 t.Fatal(err)
54 got, ok, err := pkgMap.Path("android/soong/ui/test")
55 if err != nil {
56 t.Error("Unexpected error in pkgMap.Path(soong):", err)
63 got, ok, err = pkgMap.Path("github.com/google/blueprint")
64 if err != nil {
65 t.Error("Unexpected error in pkgMap.Path(blueprint):", err)
77 if _, _, err := pkgMap.Path("testing"); err == nil {
80 if err := pkgMap.Set(""); err == nil {
83 if err := pkgMap.Set("a=a"); err != nil {
84 t.Errorf("Unexpected error: %v", err)
86 if err := pkgMap.Set("a=b"); err == nil {
89 if _, ok, err := pkgMap.Path("testing"); err != nil {
90 t.Errorf("Unexpected error: %v", err)
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
107 t.Fatal("Got error when compiling:", err)
110 if err := pkg.Link(config, out); err != nil {
111 t.Fatal("Got error when linking:", err)
114 if _, err := os.Stat(out); err != nil {
115 t.Error("Cannot stat output:", err)
136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
137 t.Fatal("Got error when compiling:", err)
140 if err := pkg.Link(config, out); err != nil {
141 t.Fatal("Got error when linking:", err)
145 if stat, err := os.Stat(out); err == nil {
148 t.Fatal("Failed to stat output file:", err)
162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
163 t.Fatal("Got error when compiling:", err)
175 if err := pkg.Link(config, out); err != nil {
176 t.Fatal("Got error while linking:", err)
188 if stat, err := os.Stat(out); err == nil {
201 t.Fatal("Failed to stat output file:", err)
235 …if err := ioutil.WriteFile(filepath.Join(dir, "a", "a.go"), []byte(go_a_a+"\n"), 0666); err != nil…
236 t.Fatal("Error writing a/a.go:", err)
252 …if err := ioutil.WriteFile(filepath.Join(dir, "main", "main.go"), []byte(go_main_main+"\n"), 0666)…
253 t.Fatal("Error writing main/main.go:", err)
269 if err := os.Remove(filepath.Join(dir, "out", "test")); err != nil {
270 t.Fatal("Failed to remove output:", err)
279 …if err := ioutil.WriteFile(filepath.Join(dir, "main", "main.go"), []byte(go_main_main+"\n"), 0666)…
280 t.Fatal("Error writing main/main.go:", err)
285 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
286 t.Fatal("Got error when compiling:", err)
300 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
301 b.Fatal("Got error when compiling:", err)
304 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
305 b.Fatal("Got error when linking:", err)
317 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
318 b.Fatal("Got error when compiling:", err)
321 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
322 b.Fatal("Got error when linking:", err)
330 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
331 b.Fatal("Got error when compiling:", err)
334 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
335 b.Fatal("Got error when linking:", err)
385 dir, err := ioutil.TempDir("", "test")
386 if err != nil {
387 t.Fatalf("Error creating temporary directory: %#v", err)
392 if err := ioutil.WriteFile(filepath.Join(dir, name), []byte(contents), 0666); err != nil {
393 t.Fatalf("Error writing %q: %#v", name, err)
397 if err := os.Mkdir(filepath.Join(dir, name), 0777); err != nil {
398 t.Fatalf("Error creating %q directory: %#v", name, err)
416 if err := pkg.FindDeps(config, filepath.Join(dir, "main")); err != nil {
417 t.Fatalf("Error finding deps: %v", err)