OSDN Git Service

Update Go library to r60.
[pf3gnuchains/gcc-fork.git] / libgo / go / exec / lp_test.go
index 5408177..77d8e84 100644 (file)
@@ -22,12 +22,12 @@ func TestLookPathNotFound(t *testing.T) {
                if path != "" {
                        t.Fatalf("LookPath path == %q when err != nil", path)
                }
-               perr, ok := err.(*PathError)
+               perr, ok := err.(*Error)
                if !ok {
-                       t.Fatal("LookPath error is not a PathError")
+                       t.Fatal("LookPath error is not an exec.Error")
                }
                if perr.Name != name {
-                       t.Fatalf("want PathError name %q, got %q", name, perr.Name)
+                       t.Fatalf("want Error name %q, got %q", name, perr.Name)
                }
        }
 }