]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Skeleton TestMain
authorMatt Joiner <anacrolix@gmail.com>
Sun, 10 Jul 2016 12:58:43 +0000 (22:58 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 10 Jul 2016 12:58:43 +0000 (22:58 +1000)
Used with manual inspection of process after tests finish.

main_test.go [new file with mode: 0644]

diff --git a/main_test.go b/main_test.go
new file mode 100644 (file)
index 0000000..b6e4623
--- /dev/null
@@ -0,0 +1,12 @@
+package torrent
+
+import (
+       "os"
+       "testing"
+)
+
+func TestMain(m *testing.M) {
+       code := m.Run()
+       // select {}
+       os.Exit(code)
+}