17 lines
290 B
Go
17 lines
290 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/docker/docker/pkg/reexec"
|
||
|
)
|
||
|
|
||
|
func TestMain(m *testing.M) {
|
||
|
reexec.Register(testListenerNoAddrCmdPhase1, initListenerTestPhase1)
|
||
|
reexec.Register(testListenerNoAddrCmdPhase2, initListenerTestPhase2)
|
||
|
if reexec.Init() {
|
||
|
return
|
||
|
}
|
||
|
m.Run()
|
||
|
}
|