Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mustOpen (0.17 sec)

  1. src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go

    	f, remove := mustTempFile(t)
    	defer remove()
    
    	other := mustOpen(t, f.Name())
    	defer other.Close()
    
    	lock(t, f)
    	lockOther := mustBlock(t, "Lock", other)
    	unlock(t, f)
    	lockOther(t)
    	unlock(t, other)
    }
    
    func TestLockExcludesRLock(t *testing.T) {
    	t.Parallel()
    
    	f, remove := mustTempFile(t)
    	defer remove()
    
    	other := mustOpen(t, f.Name())
    	defer other.Close()
    
    	lock(t, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top