1// Copyright 2013 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
5package integration
6
7import (
8	"os"
9	"testing"
10
11	"github.com/coreos/etcd/pkg/testutil"
12)
13
14func TestMain(m *testing.M) {
15	v := m.Run()
16	if v == 0 && testutil.CheckLeakedGoroutine() {
17		os.Exit(1)
18	}
19	os.Exit(v)
20}
21