[all-commits] [llvm/llvm-project] 7ddfb9: [lldb] Fix unit test parsing to handle CR+LF as we...

amccarth-google via All-commits all-commits at lists.llvm.org
Wed Aug 12 13:56:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ddfb956e1a5ee91d0d30f33ca0c84faeb471db4
      https://github.com/llvm/llvm-project/commit/7ddfb956e1a5ee91d0d30f33ca0c84faeb471db4
  Author: Adrian McCarthy <amccarth at google.com>
  Date:   2020-08-12 (Wed, 12 Aug 2020)

  Changed paths:
    M lldb/unittests/Utility/TimerTest.cpp

  Log Message:
  -----------
  [lldb] Fix unit test parsing to handle CR+LF as well as LF

Apparently when the strings are created, the `'\n'` is converted to the
platform's natural new line indicator, which is CR+LF on Windows.  But
upon reading back with `sscanf`, the CRs caused a matching failure.




More information about the All-commits mailing list