Commit 96bd19e
committed
Fix parse error in runtests.jl when Hwloc fails
Add try-catch blocks to handle cases where Hwloc.num_physical_cores() or
Hwloc.num_virtual_cores() might fail or return invalid values. This prevents
the 'input string is empty or only contains whitespace' error when parsing
the default values for RETESTITEMS_NWORKERS and RETESTITEMS_NWORKER_THREADS.1 parent 714ead6 commit 96bd19e
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
0 commit comments