Commit Graph

6 Commits

Author SHA1 Message Date
brody-qq
ebaa9f9d35 Tests/Kernel: Add more tests for shared and private mmaps
Adds the following tests:
* if there are multiple shared mmaps for the same file, writes to
  one mmap region should be visible in the other mmap regions.
* if you write to a file with write(), those changes should be
  visible in shared mmaps for that file.
* if you write to a shared mmap, those changes should be visible
  when you read() from the file.
* if you write to a private mmap, any changes you make should not
  be visible when you read() the file.
2024-07-07 18:25:32 +02:00
Andrew Kaster
1cd3826ad6 Userland+Tests: Don't use MAP_FILE when mmap-ing
MAP_FILE is not in POSIX, and is simply in most LibCs as a "default"
mode. Our own LibC defines it as 0, meaning "no flags". It is also not
defined in some OS's, such as Haiku. Let's be more portable and not use
the unnecessary flag.
2023-09-01 19:50:35 +02:00
Andreas Kling
e58fe1cdd7 Tests/Kernel: Add missing mode parameter to open() calls in inode tests 2023-01-01 15:15:25 +01:00
Liav A
7d91724dd2 Tests/Kernel: Add tests to ensure we don't regress InodeVMObjects 2022-09-26 20:00:34 +03:00
Liav A
e181269da7 Revert "Tests/Kernel: Add tests to ensure we don't regress InodeVMObjects"
This reverts commit b0d555163b.
2022-09-24 13:49:40 +02:00
Liav A
e6306d459a Tests/Kernel: Add tests to ensure we don't regress InodeVMObjects 2022-09-16 14:55:45 +03:00