[module] test mmaping with offsets in test program

This commit makes the test program try the following cases:
* mmaping 0-offset dmabuf with 0 offset
* mmaping 0-offset dmabuf with 1 page offset
* mmaping page-offset dmabuf with 0 offset
* mmaping page-offset dmabuf with 1 page offset
* mmaping device with 0 offset
* mmaping device with 1 page offset
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 5774e21965
commit 328f9078ee
2 files changed
+79 -4

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
Read string: Hello, world!
Read string: Hello, world!
Read string: Hello, world!
Index 1024: 0x6c6c6548
Index 1025: 0x77202c6f
Index 1026: 0x646c726f
Index 1027: 0xaaaa0021