@@ -12,7 +12,10 @@ licenses(["notice"])
12
12
13
13
libc_test (
14
14
name = "exception_status_test" ,
15
- srcs = ["exception_status_test.cpp" ],
15
+ srcs = [
16
+ "exception_status_test.cpp" ,
17
+ "excepts.h" ,
18
+ ],
16
19
libc_function_deps = [
17
20
"//libc:feclearexcept" ,
18
21
"//libc:feraiseexcept" ,
@@ -21,23 +24,33 @@ libc_test(
21
24
],
22
25
deps = [
23
26
"//libc:__support_fputil_fenv_impl" ,
24
- "//libc:hdr_fenv_macros" ,
27
+ "//libc:hdr_fenv_macros" ,
28
+ "//libc/test/UnitTest:fp_test_helpers" ,
25
29
],
26
30
)
27
31
28
32
libc_test (
29
33
name = "rounding_mode_test" ,
30
- srcs = ["rounding_mode_test.cpp" ],
34
+ srcs = [
35
+ "excepts.h" ,
36
+ "rounding_mode_test.cpp" ,
37
+ ],
31
38
libc_function_deps = [
32
39
"//libc:fegetround" ,
33
40
"//libc:fesetround" ,
34
41
],
35
- deps = ["//libc:hdr_fenv_macros" ],
42
+ deps = [
43
+ "//libc:hdr_fenv_macros" ,
44
+ "//libc/test/UnitTest:fp_test_helpers" ,
45
+ ],
36
46
)
37
47
38
48
libc_test (
39
49
name = "enabled_exceptions_test" ,
40
- srcs = ["enabled_exceptions_test.cpp" ],
50
+ srcs = [
51
+ "enabled_exceptions_test.cpp" ,
52
+ "excepts.h" ,
53
+ ],
41
54
libc_function_deps = [
42
55
"//libc:feclearexcept" ,
43
56
"//libc:feraiseexcept" ,
@@ -48,14 +61,17 @@ libc_test(
48
61
"//libc:__support_common" ,
49
62
"//libc:__support_fputil_fenv_impl" ,
50
63
"//libc:__support_macros_properties_architectures" ,
64
+ "//libc:hdr_fenv_macros" ,
51
65
"//libc/test/UnitTest:fp_test_helpers" ,
52
- "//libc:hdr_fenv_macros" ,
53
66
],
54
67
)
55
68
56
69
libc_test (
57
70
name = "feholdexcept_test" ,
58
- srcs = ["feholdexcept_test.cpp" ],
71
+ srcs = [
72
+ "excepts.h" ,
73
+ "feholdexcept_test.cpp" ,
74
+ ],
59
75
libc_function_deps = [
60
76
"//libc:feholdexcept" ,
61
77
],
@@ -64,40 +80,53 @@ libc_test(
64
80
"//libc:__support_common" ,
65
81
"//libc:__support_fputil_fenv_impl" ,
66
82
"//libc:__support_macros_properties_architectures" ,
83
+ "//libc:hdr_fenv_macros" ,
84
+ "//libc:types_fenv_t" ,
67
85
"//libc/test/UnitTest:fp_test_helpers" ,
68
- "//libc:types_fenv_t" ,
69
86
],
70
87
)
71
88
72
89
libc_test (
73
90
name = "exception_flags_test" ,
74
- srcs = ["exception_flags_test.cpp" ],
91
+ srcs = [
92
+ "exception_flags_test.cpp" ,
93
+ "excepts.h" ,
94
+ ],
75
95
libc_function_deps = [
76
96
"//libc:fegetexceptflag" ,
77
97
"//libc:fesetexceptflag" ,
78
98
"//libc:fetestexceptflag" ,
79
99
],
80
100
deps = [
81
101
"//libc:__support_fputil_fenv_impl" ,
82
- "//libc:types_fexcept_t" ,
102
+ "//libc:hdr_fenv_macros" ,
103
+ "//libc:types_fexcept_t" ,
104
+ "//libc/test/UnitTest:fp_test_helpers" ,
83
105
],
84
106
)
85
107
86
108
libc_test (
87
109
name = "feclearexcept_test" ,
88
- srcs = ["feclearexcept_test.cpp" ],
110
+ srcs = [
111
+ "excepts.h" ,
112
+ "feclearexcept_test.cpp" ,
113
+ ],
89
114
libc_function_deps = [
90
115
"//libc:feclearexcept" ,
91
116
],
92
117
deps = [
93
118
"//libc:__support_fputil_fenv_impl" ,
94
- "//libc:hdr_fenv_macros" ,
119
+ "//libc:hdr_fenv_macros" ,
120
+ "//libc/test/UnitTest:fp_test_helpers" ,
95
121
],
96
122
)
97
123
98
124
libc_test (
99
125
name = "feenableexcept_test" ,
100
- srcs = ["feenableexcept_test.cpp" ],
126
+ srcs = [
127
+ "excepts.h" ,
128
+ "feenableexcept_test.cpp" ,
129
+ ],
101
130
libc_function_deps = [
102
131
"//libc:fedisableexcept" ,
103
132
"//libc:feenableexcept" ,
@@ -106,25 +135,34 @@ libc_test(
106
135
deps = [
107
136
"//libc:__support_common" ,
108
137
"//libc:__support_macros_properties_architectures" ,
109
- "//libc:hdr_fenv_macros" ,
138
+ "//libc:hdr_fenv_macros" ,
139
+ "//libc/test/UnitTest:fp_test_helpers" ,
110
140
],
111
141
)
112
142
113
143
libc_test (
114
144
name = "feupdateenv_test" ,
115
- srcs = ["feupdateenv_test.cpp" ],
145
+ srcs = [
146
+ "excepts.h" ,
147
+ "feupdateenv_test.cpp" ,
148
+ ],
116
149
libc_function_deps = [
117
150
"//libc:feupdateenv" ,
118
151
],
119
152
deps = [
120
153
"//libc:__support_fputil_fenv_impl" ,
121
- "//libc:types_fenv_t" ,
154
+ "//libc:hdr_fenv_macros" ,
155
+ "//libc:types_fenv_t" ,
156
+ "//libc/test/UnitTest:fp_test_helpers" ,
122
157
],
123
158
)
124
159
125
160
libc_test (
126
161
name = "getenv_and_setenv_test" ,
127
- srcs = ["getenv_and_setenv_test.cpp" ],
162
+ srcs = [
163
+ "excepts.h" ,
164
+ "getenv_and_setenv_test.cpp" ,
165
+ ],
128
166
libc_function_deps = [
129
167
"//libc:fegetenv" ,
130
168
"//libc:fegetround" ,
@@ -133,6 +171,8 @@ libc_test(
133
171
],
134
172
deps = [
135
173
"//libc:__support_fputil_fenv_impl" ,
136
- "//libc:types_fenv_t" ,
174
+ "//libc:hdr_fenv_macros" ,
175
+ "//libc:types_fenv_t" ,
176
+ "//libc/test/UnitTest:fp_test_helpers" ,
137
177
],
138
178
)
0 commit comments