[all-commits] [llvm/llvm-project] bb78dd: [RGT] StencilTest: Fix an assertion

Paul T Robinson via All-commits all-commits at lists.llvm.org
Fri Mar 18 14:13:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb78dd2e1f81323a631e2964d06a40aa10d5e2f5
      https://github.com/llvm/llvm-project/commit/bb78dd2e1f81323a631e2964d06a40aa10d5e2f5
  Author: Paul Robinson <paul.robinson at sony.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M clang/unittests/Tooling/StencilTest.cpp

  Log Message:
  -----------
  [RGT] StencilTest: Fix an assertion

ASSERT_THAT_EXPECTED implicitly calls takeError(), and calling
takeError() a second time returns nothing, so the check for the
content of the error text wasn't being executed.
Fixes Issue #48901

Found by the Rotten Green Tests project.




More information about the All-commits mailing list