ulps: Fix long lines
[mathlib.git] / etc / self.c
CommitLineData
6b289713
SK
1#include <atf-c.h>
2#include <stdio.h>
3
4#include "../include/subr_atf.h"
5
6ATF_TC(test_self);
7ATF_TC_HEAD(test_self, tc)
8{
9}
10ATF_TC_BODY(test_self, tc)
11{
12 int i, N = 100;
13
14 /*
15 * Make sure that:
16 * 1. failures are sticky
17 * 2. for each failure, only one error message is printed
18 * (the latter requires visual inspection)
19 */
20 ATF_FOR_LOOP(i, N, i++) {
21 ATF_PASS_OR_BREAK(0);
22 ATF_PASS_OR_BREAK(1);
23 }
24
25 printf("%d = i\n", i);
26 ATF_CHECK(i == 1);
27}
28
29ATF_TP_ADD_TCS(tp)
30{
31 ATF_TP_ADD_TC(tp, test_self);
32
33 return atf_no_error();
34}