Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
Standard stream assertions

Macros

#define cr_assert_stdout_eq_str(ExpectedContents, FormatString, ...)   internal
 
#define cr_expect_stdout_eq_str(ExpectedContents, FormatString, ...)   internal
 
#define cr_assert_stdout_neq_str(UnexpectedContents, FormatString, ...)   internal
 
#define cr_expect_stdout_neq_str(UnexpectedContents, FormatString, ...)   internal
 
#define cr_assert_stderr_eq_str(ExpectedContents, FormatString, ...)   internal
 
#define cr_expect_stderr_eq_str(ExpectedContents, FormatString, ...)   internal
 
#define cr_assert_stderr_neq_str(UnexpectedContents, FormatString, ...)   internal
 
#define cr_expect_stderr_neq_str(UnexpectedContents, FormatString, ...)   internal
 
#define cr_assert_stdout_eq(RefFile, FormatString, ...)   internal
 
#define cr_expect_stdout_eq(RefFile, FormatString, ...)   internal
 
#define cr_assert_stdout_neq(RefFile, FormatString, ...)   internal
 
#define cr_expect_stdout_neq(RefFile, FormatString, ...)   internal
 
#define cr_assert_stderr_eq(RefFile, FormatString, ...)   internal
 
#define cr_expect_stderr_eq(RefFile, FormatString, ...)   internal
 
#define cr_assert_stderr_neq(RefFile, FormatString, ...)   internal
 
#define cr_expect_stderr_neq(RefFile, FormatString, ...)   internal
 

Detailed Description

Macro Definition Documentation

◆ cr_assert_stderr_eq

#define cr_assert_stderr_eq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stderr are equal to the contents of RefFile

Passes if the contents of stderr are equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 480 of file redirect.h.

◆ cr_assert_stderr_eq_str

#define cr_assert_stderr_eq_str ( ExpectedContents,
FormatString,
... )   internal

Passes if the contents of stderr are equal to the contents of the string ExpectedContents

Passes if the contents of stderr are equal to the contents of the string ExpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 346 of file redirect.h.

◆ cr_assert_stderr_neq

#define cr_assert_stderr_neq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stderr are not equal to the contents of RefFile

Passes if the contents of stderr are not equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 513 of file redirect.h.

◆ cr_assert_stderr_neq_str

#define cr_assert_stderr_neq_str ( UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of stderr are not equal to the contents of the string UnexpectedContents

Passes if the contents of stderr are not equal to the contents of the string UnexpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 381 of file redirect.h.

◆ cr_assert_stdout_eq

#define cr_assert_stdout_eq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stdout are equal to the contents of RefFile

Passes if the contents of stdout are equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 414 of file redirect.h.

◆ cr_assert_stdout_eq_str

#define cr_assert_stdout_eq_str ( ExpectedContents,
FormatString,
... )   internal

Passes if the contents of stdout are equal to the contents of the string ExpectedContents

Passes if the contents of stdout are equal to the contents of the string ExpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 276 of file redirect.h.

◆ cr_assert_stdout_neq

#define cr_assert_stdout_neq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stdout are not equal to the contents of RefFile

Passes if the contents of stdout are not equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 447 of file redirect.h.

◆ cr_assert_stdout_neq_str

#define cr_assert_stdout_neq_str ( UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of stdout are not equal to the contents of the string UnexpectedContents

Passes if the contents of stdout are not equal to the contents of the string UnexpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 311 of file redirect.h.

◆ cr_expect_stderr_eq

#define cr_expect_stderr_eq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stderr are equal to the contents of RefFile

Passes if the contents of stderr are equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 495 of file redirect.h.

◆ cr_expect_stderr_eq_str

#define cr_expect_stderr_eq_str ( ExpectedContents,
FormatString,
... )   internal

Passes if the contents of stderr are equal to the contents of the string ExpectedContents

Passes if the contents of stderr are equal to the contents of the string ExpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 363 of file redirect.h.

◆ cr_expect_stderr_neq

#define cr_expect_stderr_neq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stderr are not equal to the contents of RefFile

Passes if the contents of stderr are not equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 530 of file redirect.h.

◆ cr_expect_stderr_neq_str

#define cr_expect_stderr_neq_str ( UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of stderr are not equal to the contents of the string UnexpectedContents

Passes if the contents of stderr are not equal to the contents of the string UnexpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 398 of file redirect.h.

◆ cr_expect_stdout_eq

#define cr_expect_stdout_eq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stdout are equal to the contents of RefFile

Passes if the contents of stdout are equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 429 of file redirect.h.

◆ cr_expect_stdout_eq_str

#define cr_expect_stdout_eq_str ( ExpectedContents,
FormatString,
... )   internal

Passes if the contents of stdout are equal to the contents of the string ExpectedContents

Passes if the contents of stdout are equal to the contents of the string ExpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 293 of file redirect.h.

◆ cr_expect_stdout_neq

#define cr_expect_stdout_neq ( RefFile,
FormatString,
... )   internal

Passes if the contents of stdout are not equal to the contents of RefFile

Passes if the contents of stdout are not equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 464 of file redirect.h.

◆ cr_expect_stdout_neq_str

#define cr_expect_stdout_neq_str ( UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of stdout are not equal to the contents of the string UnexpectedContents

Passes if the contents of stdout are not equal to the contents of the string UnexpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 328 of file redirect.h.