summaryrefslogtreecommitdiff
path: root/pkg/test/env_test.go
blob: 2862fd20a0996e86eae119204e9e9e653f9a8889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package test

import (
	"testing"
)

func TestEnv(t *testing.T) {
	e := newEnv(t)
	defer e.Free()

	c := e.newInstance()

	r := c.Send("echo %s", dummy)
	if r != dummy {
		e.Errorf("wrong reply: send '%s', recv '%s'", dummy, r)
	}
}