Commit e7cdf8c
test: fix musl libc test fail due to locale differences
The 'nvme-cli - uint128' test was failing when build with musl libc.
The reason was that musl libc leaves the thousands separator from
LC_NUMERIC empty with the fr_FR.utf-8.
This patch offers a solution by skipping the test with a warning
if the thousands separator cannot be obtained.
Signed-off-by: Michal Rábek <[email protected]>1 parent 6003720 commit e7cdf8c
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | | - | |
| 71 | + | |
59 | 72 | | |
| 73 | + | |
60 | 74 | | |
61 | | - | |
| 75 | + | |
62 | 76 | | |
63 | 77 | | |
64 | 78 | | |
| |||
0 commit comments