From cb1c8e8ced3c7cac295f454b3242e57db67f5fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 16 Jan 2012 10:59:44 +0000 Subject: [PATCH] sh: Test EXIT trap with multiple statements in it Reviewed by: jilles MFC after: 2 weeks --- tools/regression/bin/sh/builtins/trap9.0 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/regression/bin/sh/builtins/trap9.0 diff --git a/tools/regression/bin/sh/builtins/trap9.0 b/tools/regression/bin/sh/builtins/trap9.0 new file mode 100644 index 000000000000..0f584ecec584 --- /dev/null +++ b/tools/regression/bin/sh/builtins/trap9.0 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1