Fix ATF_TP_ADD_TCS example in atf-c-api(3)

ATF_TP_ADD_TC should use `tp` as the second argument, not `tcs`, as
ATF_TP_ADD_TCS uses `tp` as its first argument.

Bump .Dd for the change.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-03-06 20:54:21 +00:00
parent 0e4e8f1b33
commit 63bb40b55d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314793

View file

@ -26,7 +26,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd March 2, 2014
.Dd March 6, 2017
.Dt ATF-C-API 3
.Os
.Sh NAME
@ -243,9 +243,9 @@ ATF_TC_BODY(tc3, tc)
ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tcs, tc1);
ATF_TP_ADD_TC(tcs, tc2);
ATF_TP_ADD_TC(tcs, tc3);
ATF_TP_ADD_TC(tp, tc1);
ATF_TP_ADD_TC(tp, tc2);
ATF_TP_ADD_TC(tp, tc3);
... add additional test cases ...
return atf_no_error();