oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1//go:build !hostedlive
2
3package main
4
5import "testing"
6
7// TestNoCrashPointWithoutTag: a build without the hostedlive tag has no
8// runner hook, so EQUIPO_HOSTED_CRASH_AFTER_LAUNCH can change nothing in
9// it. This test binary is such a build.
10func TestNoCrashPointWithoutTag(t *testing.T) {
11 t.Setenv("EQUIPO_HOSTED_CRASH_AFTER_LAUNCH", "1")
12 if runnerHook != nil {
13 t.Fatal("runnerHook is set in a build without the hostedlive tag; the Task 17 crash point must not ship")
14 }
15}
16