//go:build !freebsd
// +build !freebsd

package mint_test

import (
	"os"
	"testing"

	"github.com/otiai10/mint"
)

// Exit
func TestExit(t *testing.T) {
	t.Skip("mint.Testee.Exit is temporarily deprecated.")
	mint.Expect(t, func() {
		os.Exit(999999)
	}).Exit(999999)

	mint.Expect(t, func() {
		os.Exit(1)
	}).Not().Exit(0)

	r := mint.Expect(t, func() {
		os.Exit(0)
	}).Dry().Exit(1)
	mint.Expect(t, r.OK()).ToBe(false)
}
