[all-commits] [llvm/llvm-project] e3aa4c: [lldb/test] Disable NSDate format check under _WIN32

Vedant Kumar via All-commits all-commits at lists.llvm.org
Mon May 18 16:52:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3aa4cd9dbcee6441f51102e3958c35321698c67
      https://github.com/llvm/llvm-project/commit/e3aa4cd9dbcee6441f51102e3958c35321698c67
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M lldb/unittests/DataFormatter/MockTests.cpp

  Log Message:
  -----------
  [lldb/test] Disable NSDate format check under _WIN32

Disable the test which attempts to format an NSDate with a date_value of
0 on _WIN32.

When _WIN32 is defined, GetOSXEpoch returns a date that should be in
2001, but after this is passed through timegm (which, afaict isn't
portable?) the result is a date in 1970:

```
lldb-x64-windows-ninja\llvm-project\lldb\unittests\DataFormatter\MockTests.cpp(39): error:       Expected: *formatDateValue(0)
      Which is: "1970-01-01 00:00:00 Pacific Standard Time"
      To be equal to: "2001-01-01 00:00:00 UTC"
```

http://lab.llvm.org:8011/builders/lldb-aarch64-ubuntu/builds/4520/steps/test/logs/stdio




More information about the All-commits mailing list