github.com/glycerine/xcryptossh@v7.0.4+incompatible/tcpip_test.go (about)

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ssh
     6  
     7  import (
     8  	"testing"
     9  )
    10  
    11  func TestAutoPortListenBroken(t *testing.T) {
    12  	defer xtestend(xtestbegin(t))
    13  	broken := "SSH-2.0-OpenSSH_5.9hh11"
    14  	works := "SSH-2.0-OpenSSH_6.1"
    15  	if !isBrokenOpenSSHVersion(broken) {
    16  		t.Errorf("version %q not marked as broken", broken)
    17  	}
    18  	if isBrokenOpenSSHVersion(works) {
    19  		t.Errorf("version %q marked as broken", works)
    20  	}
    21  }