blob: 4d2767f79af70f7a0597db73a06776ece365040e [file] [log] [blame]
Cosmos Nicolaoub1c49cd2015-02-24 15:24:08 -08001// Copyright 2015 The Vanadium 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.
Jiri Simsae7fc94d2015-02-25 12:12:07 -08004
Suharsh Sivakumard19c95d2015-02-19 14:44:50 -08005// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7package signals
8
9import "fmt"
10import "testing"
11import "os"
12
Cosmos Nicolaou1381f8a2015-03-13 09:40:34 -070013import "v.io/x/ref/test"
14import "v.io/x/ref/test/modules"
Suharsh Sivakumard19c95d2015-02-19 14:44:50 -080015
16func init() {
17 modules.RegisterChild("handleDefaults", ``, handleDefaults)
18 modules.RegisterChild("handleCustom", ``, handleCustom)
19 modules.RegisterChild("handleCustomWithStop", ``, handleCustomWithStop)
20 modules.RegisterChild("handleDefaultsIgnoreChan", ``, handleDefaultsIgnoreChan)
21}
22
23func TestMain(m *testing.M) {
Cosmos Nicolaou1381f8a2015-03-13 09:40:34 -070024 test.Init()
Cosmos Nicolaou42a17362015-03-10 16:40:18 -070025 if modules.IsModulesChildProcess() {
Suharsh Sivakumard19c95d2015-02-19 14:44:50 -080026 if err := modules.Dispatch(); err != nil {
27 fmt.Fprintf(os.Stderr, "modules.Dispatch failed: %v\n", err)
28 os.Exit(1)
29 }
30 return
31 }
32 os.Exit(m.Run())
33}