lenary added a comment.

Updates incoming to add a specific check for netbsd and windows, which are 
currently excluding the affected tests anyway.



================
Comment at: llvm/utils/lit/lit/llvm/config.py:165
+    #
+    # This check hopefully detects both cases, and disables tests that require
+    # consistent atime.
----------------
int3 wrote:
> lenary wrote:
> > jhenderson wrote:
> > > Is "hopefully" really needed here?
> > I'm hedging in this comment, in part because we're trying to find a race 
> > condition experimentally, and also because this will cause lit to fatal 
> > error before running any tests if `touch` exits non-zero for any reason. 
> if we know for sure that NetBSD and Windows don't support this, why not 
> hardcode those values in, and only try the experimental check otherwise?
Yeah, this seems pragmatic, I will add it back in again - excluding NetBSD and 
Windows.


================
Comment at: llvm/utils/lit/lit/llvm/config.py:171
+            # in the tests that do the same thing.
+            (_, try_touch_err) = self.get_process_output(["touch", "-a", "-t", 
"199505050555.55", f.name])
+            if try_touch_err != "":
----------------
michaelplatings wrote:
> It looks like this command will be run on Windows. I think it will fail and 
> cause False to be returned, which is the desired result, but this appears to 
> be by accident rather than design. Therefore I'm inclined to agree with @int3 
> that a hard-coded check would be preferable.
I am going to add the hardcoded checks, but I think `touch` is available in 
windows, it should be in the same directory as all the git binaries.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144638/new/

https://reviews.llvm.org/D144638

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to