Commit 1653a15
committed
calculate CAN_SIGSYS when called rather than as a constant
CAN_SIGSYS is not used by Test2 anymore since the removal of the shm
code in 4c1bdd2. It is however still
used by Test2::Harness.
%Config has magic behavior where some values exist in Config.pm, and
others need to load Config_heavy.pl. Checking the sig_name value will
always force Config_heavy.pl to be loaded. Since CAN_SIGSYS is mostly
not used, having it always force loading the heavy config provides a
minor slowdown of loading Test::More. We can provide the function as a
runtime check rather than a constant to avoid this.1 parent 8e80a95 commit 1653a15
2 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
175 | 173 | | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
0 commit comments