Get TEST_LIBC_CALLS passing on AARCH64

This commit is contained in:
Justine Tunney 2023-05-13 02:41:41 -07:00
parent 802e7eb4ef
commit ba49e86e20
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
22 changed files with 65 additions and 7 deletions

View file

@ -77,14 +77,18 @@ TEST(commandv, testSlashes_wontSearchPath_butChecksAccess) {
i = __syscount;
EXPECT_STREQ("home/sh.com",
commandv("home/sh.com", pathbuf, sizeof(pathbuf)));
#ifdef __x86_64__
if (!IsWindows()) EXPECT_EQ(i + 2, __syscount);
#endif
}
TEST(commandv, testSlashes_wontSearchPath_butStillAppendsComExtension) {
EXPECT_NE(-1, touch("home/sh.com", 0755));
i = __syscount;
EXPECT_STREQ("home/sh.com", commandv("home/sh", pathbuf, sizeof(pathbuf)));
#ifdef __x86_64__
if (!IsWindows()) EXPECT_EQ(i + 3, __syscount);
#endif
}
TEST(commandv, testSameDir_doesntHappenByDefaultUnlessItsWindows) {