#!/bin/sh

TEST_TTY=/dev/tty8

test_command () {
	if whence $1 >/dev/null 2>&1
	then
		if eval "$@" >/dev/null 2>&1
		then
			mt_success "test of $1 succeeds"
		else
			mt_failed "test of $1 fails, exit status = $?"
		fi
	else
		mt_ignored "this test needs $1, ignoring this test"
	fi
}

test_command "spawn $TEST_TTY 0 0 /bin/sh -il &"
