Make small fixes

This commit is contained in:
Justine Tunney 2022-04-17 10:33:12 -07:00
parent 80308079ec
commit ab38f0823d
5 changed files with 7 additions and 6 deletions

View file

@ -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);
}

View file

@ -199,6 +199,9 @@ void FixupUndefOpTestFlags(char w, int h, uint64_t x, uint64_t y,
if (y != 0 && y != 1) {
*flags = SetFlag(*flags, FLAGS_OF, GetFlag(goldenflags, FLAGS_OF));
}
if (y >= w) {
*flags = SetFlag(*flags, FLAGS_CF, GetFlag(goldenflags, FLAGS_CF));
}
}
TEST(bsu, test) {