[libc-commits] [libc] [libc] Fix readlink tests on 32-bit systems (PR #98168)

via libc-commits libc-commits at lists.llvm.org
Tue Jul 9 09:13:04 PDT 2024


================
@@ -30,17 +31,20 @@ TEST(LlvmLibcReadlinkTest, CreateAndUnlink) {
   //   3. Cleanup the symlink created in step #1.
   ASSERT_THAT(LIBC_NAMESPACE::symlink(LINK_VAL, LINK), Succeeds(0));
 
-  char buf[sizeof(LINK_VAL)];
----------------
lntue wrote:

Why don't we just hardcoded some big enough buffer?  Something like
```
char buf[256];
```

https://github.com/llvm/llvm-project/pull/98168


More information about the libc-commits mailing list