aboutsummaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-10-29 17:03:20 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-10-29 17:03:20 +0000
commit235130433aa8ef492d1c12270a3687fc5e99d5bd (patch)
tree01ace778a97f5059e2c2b428fcb6227fa247c3a0 /lib/csu
parent5201e0f1103b63b4703e5081b86bdba3e06f51e7 (diff)
Notes
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/tests/fini_test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/csu/tests/fini_test.c b/lib/csu/tests/fini_test.c
index 7c6001e4f9b14..df607dc5113d8 100644
--- a/lib/csu/tests/fini_test.c
+++ b/lib/csu/tests/fini_test.c
@@ -119,11 +119,22 @@ ATF_TC_BODY(fini_array_test, tc)
}
}
+extern void *__dso_handle;
+
+ATF_TC_WITHOUT_HEAD(dso_handle_test);
+ATF_TC_BODY(dso_handle_test, tc)
+{
+
+ ATF_REQUIRE_MSG(__dso_handle == NULL,
+ "Invalid __dso_handle in non-DSO");
+}
+
ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, dtors_test);
ATF_TP_ADD_TC(tp, fini_array_test);
+ ATF_TP_ADD_TC(tp, dso_handle_test);
return (atf_no_error());
}