mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 21:25:32 +02:00
Add a test for creation of anonymous tempfiles
This commit is contained in:
@@ -24,7 +24,11 @@ func CreateAnonymousTemp(dir string) (*os.File, error) {
|
||||
return os.NewFile(uintptr(fd), path), nil
|
||||
}
|
||||
if err == unix.ENOENT {
|
||||
return nil, err
|
||||
return nil, &os.PathError{
|
||||
Op: "open",
|
||||
Path: dir,
|
||||
Err: err,
|
||||
}
|
||||
}
|
||||
f, err := os.CreateTemp(dir, "")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user