• Jakob Unterwurzacher's avatar
    tests: loopback: check that files create after OPENDIR show up in READDIR · a6cb4bb1
    Jakob Unterwurzacher authored
    Without patch "nodefs: delay directory read till ReadDir":
    
    	go-fuse/fuse/test$ go test
    	13:56:23.932743 Unimplemented opcode INTERRUPT
    	13:56:23.932902 writer: Write/Writev failed, err: 2=no such file or directory. opcode: INTERRUPT
    	--- FAIL: TestReaddir (0.02s)
    	    loopback_test.go:578: Wrong number of directory entries: want=2 have=1
    	FAIL
    	exit status 1
    	FAIL	github.com/hanwen/go-fuse/fuse/test	1.970s
    
    With patch "nodefs: delay directory read till ReadDir":
    
    	go-fuse/fuse/test$ go test
    	13:57:03.848021 Unimplemented opcode INTERRUPT
    	13:57:03.848159 writer: Write/Writev failed, err: 2=no such file or directory. opcode: INTERRUPT
    	PASS
    	ok  	github.com/hanwen/go-fuse/fuse/test	1.960s
    
    https://github.com/hanwen/go-fuse/issues/252
    a6cb4bb1
loopback_test.go 21.4 KB