[all-commits] [llvm/llvm-project] 62a3d8: [libc][NFC] Extend ErrnoSetterMatcher to test expe...

Siva Chandra via All-commits all-commits at lists.llvm.org
Fri Sep 22 08:59:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62a3d84f5cef96bd2d4d349807e1d55a8e077963
      https://github.com/llvm/llvm-project/commit/62a3d84f5cef96bd2d4d349807e1d55a8e077963
  Author: Siva Chandra <sivachandra at gmail.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M libc/test/UnitTest/ErrnoSetterMatcher.h
    M libc/test/src/stdio/fileop_test.cpp

  Log Message:
  -----------
  [libc][NFC] Extend ErrnoSetterMatcher to test expected inequalities. (#67153)

Before this change, ErrnoSetterMatcher only allowed testing for equality
of the expected return and errno values. This change extends it to allow
testing for expected inequalities of the return and errno values. The
test libc.test.src.stdio.fileop_test has been updated to use the
ErrnoSetterMatcher with tests for inequalities.




More information about the All-commits mailing list