File: assume-no-moving-gc_test.go

package info (click to toggle)
golang-go4-unsafe-assume-no-moving-gc 0.0~git20231121.b99613f-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 84 kB
  • sloc: makefile: 2
file content (18 lines) | stat: -rw-r--r-- 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2020 Brad Fitzpatrick. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package assume_no_moving_gc

import (
	"os"
	"runtime"
	"testing"
)

func TestInit(t *testing.T) {
	if e := os.Getenv(env); e != "" {
		t.Skipf("env %s is set to %q; skipping test", env, e)
	}
	t.Logf("%s doesn't use a moving collector", runtime.Version())
}