[all-commits] [llvm/llvm-project] d18083: Error: Improve unit test by using gtest equality r...

David Blaikie via All-commits all-commits at lists.llvm.org
Wed Sep 8 16:30:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d18083c6dcb6fb646dbccdfe0954c3dd751f4b8c
      https://github.com/llvm/llvm-project/commit/d18083c6dcb6fb646dbccdfe0954c3dd751f4b8c
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  Error: Improve unit test by using gtest equality rather than explicit string compare calls

This ensures error messages from gtest includes the raw text of both
sides of the comparison - otherwise all gtest can report is the text of
the expression source, without any information about the values or how
they differ.




More information about the All-commits mailing list