(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestLoadDirWithDevNull(t *testing.T) { |
| 55 | if runtime.GOOS == "windows" { |
| 56 | t.Skip("test only works on unix systems with /dev/null present") |
| 57 | } |
| 58 | |
| 59 | l, err := Loader("testdata/frobnitz_with_dev_null") |
| 60 | if err != nil { |
| 61 | t.Fatalf("Failed to load testdata: %s", err) |
| 62 | } |
| 63 | if _, err := l.Load(); err == nil { |
| 64 | t.Error("packages with an irregular file (/dev/null) should not load") |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func TestLoadDirWithSymlink(t *testing.T) { |
| 69 | sym := filepath.Join("..", "LICENSE") |