Cosmos Nicolaou | b1c49cd | 2015-02-24 15:24:08 -0800 | [diff] [blame] | 1 | // 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 Simsa | e7fc94d | 2015-02-25 12:12:07 -0800 | [diff] [blame] | 4 | |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | package signals |
| 8 | |
| 9 | import "fmt" |
| 10 | import "testing" |
| 11 | import "os" |
| 12 | |
Cosmos Nicolaou | 1381f8a | 2015-03-13 09:40:34 -0700 | [diff] [blame] | 13 | import "v.io/x/ref/test" |
| 14 | import "v.io/x/ref/test/modules" |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 15 | |
| 16 | func init() { |
| 17 | modules.RegisterChild("handleDefaults", ``, handleDefaults) |
| 18 | modules.RegisterChild("handleCustom", ``, handleCustom) |
| 19 | modules.RegisterChild("handleCustomWithStop", ``, handleCustomWithStop) |
| 20 | modules.RegisterChild("handleDefaultsIgnoreChan", ``, handleDefaultsIgnoreChan) |
| 21 | } |
| 22 | |
| 23 | func TestMain(m *testing.M) { |
Cosmos Nicolaou | 1381f8a | 2015-03-13 09:40:34 -0700 | [diff] [blame] | 24 | test.Init() |
Cosmos Nicolaou | 42a1736 | 2015-03-10 16:40:18 -0700 | [diff] [blame] | 25 | if modules.IsModulesChildProcess() { |
Suharsh Sivakumar | d19c95d | 2015-02-19 14:44:50 -0800 | [diff] [blame] | 26 | 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 | } |