# Make sure the ESC character isn't doubled.
! go test -v

stdout '    x_test.go:11: \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\n        \x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\n'
stdout '    x_test.go:12: \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\n        \x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\n'
! stdout '\x1b\x1b'

-- go.mod --
module p

-- x_test.go --
package p

import "testing"

func Test(t *testing.T) {
	var s string
	for i := rune(0); i < ' '; i++ {
		s += string(i)
	}

	t.Log(s)
	t.Error(s)
}
