Home
last modified time | relevance | path

Searched refs:ExpectedReturn (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/libc/test/
H A DErrnoSetterMatcher.h24 T ExpectedReturn; variable
30 ErrnoSetterMatcher(T ExpectedReturn, int ExpectedErrno) in ErrnoSetterMatcher() argument
31 : ExpectedReturn(ExpectedReturn), ExpectedErrno(ExpectedErrno) {} in ErrnoSetterMatcher()
34 if (ActualReturn != ExpectedReturn) in explainError()
35 OS << "Expected return to be " << ExpectedReturn << " but got " in explainError()
39 OS << "Correct value " << ExpectedReturn in explainError()
48 return Got == ExpectedReturn && ActualErrno == ExpectedErrno; in match()
57 static internal::ErrnoSetterMatcher<RetT> Succeeds(RetT ExpectedReturn = 0,
59 return {ExpectedReturn, ExpectedErrno};
64 RetT ExpectedReturn = -1) {
[all …]