ARB
Namespaces | Macros | Functions
test_runtool.h File Reference
#include <ut_valgrinded.h>
#include <arb_strarray.h>
#include <arb_strbuf.h>
Include dependency graph for test_runtool.h:

Go to the source code of this file.

Namespaces

 test_runtool
 

Macros

#define RUN_TOOL(cmdline)   test_runtool::valgrinded_system(cmdline)
 
#define RUN_TOOL_NEVER_VALGRIND(cmdline)   GBK_system(cmdline)
 
#define TEST_RUN_TOOL(cmdline)   TEST_EXPECT_NO_ERROR(RUN_TOOL(cmdline))
 
#define TEST_RUN_TOOL_NEVER_VALGRIND(cmdline)   TEST_EXPECT_NO_ERROR(RUN_TOOL_NEVER_VALGRIND(cmdline))
 
#define TEST_RUN_TOOL_FAILS(cmdline)   TEST_EXPECT_ERROR_CONTAINS(RUN_TOOL(cmdline), "System call failed")
 

Functions

chartest_runtool::make_checked_piped_command (const char *piped_command, int pipeSymbolCount)
 
void test_runtool::add_valgrinded_cmd (StrArray &array, char *cmd)
 
chartest_runtool::valgrinded_pipe_command (const char *piped_command, const char *first_pipe)
 
GB_ERROR test_runtool::valgrinded_system (const char *cmdline)
 

Macro Definition Documentation

#define RUN_TOOL (   cmdline)    test_runtool::valgrinded_system(cmdline)

Definition at line 104 of file test_runtool.h.

#define RUN_TOOL_NEVER_VALGRIND (   cmdline)    GBK_system(cmdline)

Definition at line 105 of file test_runtool.h.

#define TEST_RUN_TOOL (   cmdline)    TEST_EXPECT_NO_ERROR(RUN_TOOL(cmdline))

Definition at line 109 of file test_runtool.h.

#define TEST_RUN_TOOL_NEVER_VALGRIND (   cmdline)    TEST_EXPECT_NO_ERROR(RUN_TOOL_NEVER_VALGRIND(cmdline))

Definition at line 110 of file test_runtool.h.

#define TEST_RUN_TOOL_FAILS (   cmdline)    TEST_EXPECT_ERROR_CONTAINS(RUN_TOOL(cmdline), "System call failed")

Definition at line 111 of file test_runtool.h.