<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64908>64908</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
accesstime (atime) does not work reliably on MacOs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hiraditya
</td>
</tr>
</table>
<pre>
ninja check-llvm-tools-llvm-objcopy sometimes passes and sometimes fails on llvm-project/llvm/test/tools/llvm-objcopy/ELF/strip-preserve-atime.test
I ran the test manually and it behaves weird many times. Even if `touch -at` works correctly, by the time next command runs the access time changes under the hood.
```console
macbookpro:stage2 touch -a -t 199505050555.55 /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo
macbookpro:stage2 ls -lu /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo
-rw-r--r-- 1 primarygroup 3568 May 5 1995 /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo
macbookpro:stage2 /Users/g/llvm-toolchain/out/stage2/bin/llvm-objcopy -p --split-dwo=/Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-dwo /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-nondwo
macbookpro:stage2 ls -lu /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-dwo /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-nondwo
-rw-r--r-- 1 primarygroup 904 Aug 22 15:31 /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-dwo
-rw-r--r-- 1 primarygroup 3568 Aug 22 15:31 /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-input.dwo
-rw-r--r-- 1 primarygroup 2880 Aug 22 15:31 /Users/g/llvm-toolchain/out/stage2/test/tools/llvm-objcopy/ELF/Output/strip-preserve-atime.test.tmp-nondwo
macbookpro:stage2
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVsGOpDYQ_RpzKYHABro5cOhktqVIWe0pH2BMNXjG2MhlusPfR3bPaCerbLJ7mj5EWBauwuXnV6riSSI9WcSeNb-w5imTW5id72ft5ajDLrPBjXtvtX2WoGZUL7kx1yUPzhm6v7rhWbl1B3ILBr0gwSqJkEDa8Z3xIrUhcBbSptW7Z1SB8XNcMn4OSHGV4r5a3yIzfv70-5nxMwWv13z1SOivmMsYuEgbyydWnu7zb-ClhTAjRA8s0m7SmD2h0QEGnOUVCW6o_Ri9OyR8BXy6ogV9AdaWwW1qhlwG1pZwc_6FQDnvUQWzM_4rDPv9AL0gWPwzgHLLEg_wm6Xkkkoh0f0LNUs7IcFmR_TJOzs3Fu9Bv85teR_KWXIG79ZFqsG5l9U7Jk4U5IQc4A0h5AGqrmvK9DRN0TTA-PkPQh9pnN6ojLyqWWrL-NltIZEZI_0g81-2sL7u-k4KirCsubbrForx5r6P3BDkZnscjLm_5T6PAyqA1etF-n3yblsBRNMe4bPcARpILD8O7H-i9ifBDcn4txLOV8hzWo0OeTxJPH3cfcebewS2PxCDdfaxK-n_FL1P0b81EujKGk7bBJxD1TBxEtXH5u0He9_DQP6Jps2Px_JxgP9XEX_z48_GXoyd6GSGfdV2_FCLpquyua_rUSLn3djWQvGDaLGVLe8OqhtFwxEz3fOSi_LIOedCVFUxiIGr40GgPFxq0V5YXeIitSnidQrnp0wTbdi3dVceMyMHNJREIOcWb5CcjPOoCX2fKBi2iVhdGk2BvkYJOhjs73onyR3Gj4kExjsYHRJYF5KIAo9Gy8HsUQV-luoLZZs3_RzCSkycGI-8TjrM21Aot3zVht8oxgQtJiZB_ysAAP__dL6ckg">