Commit 27dbdcf
committed
common/rc: introduce _have_page_size helper to skip incompatible tests
Introduce a new helper function `_have_page_size()` in `common/rc` to
check the system's memory page size using `getconf`. Update `scsi/011`
and `zbd/010` to use this helper and gracefully skip the tests if the
page size is not 4096 bytes. This prevents test failures on non-4K
page architectures.
Fixes: #234
Suggested-by: Bart Van Assche <[email protected]>
Signed-off-by: Yi Zhang <[email protected]>1 parent 078a7ac commit 27dbdcf
3 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
555 | 571 | | |
556 | 572 | | |
557 | 573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments