mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Make small fixes
This commit is contained in:
parent
80308079ec
commit
ab38f0823d
5 changed files with 7 additions and 6 deletions
|
@ -199,7 +199,7 @@ TEST(mprotect, testFileMap_canChangeToExecWhileOpenInRdwrMode) {
|
|||
|
||||
TEST(mprotect, testBadProt_failsEinval) {
|
||||
volatile char *p = gc(memalign(PAGESIZE, PAGESIZE));
|
||||
EXPECT_EQ(-1, mprotect(p, 0, -1));
|
||||
EXPECT_EQ(-1, mprotect(p, 9999, -1));
|
||||
EXPECT_EQ(EINVAL, errno);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue