X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcmdline.h;h=f6da62bea260d02aeae9f1bdddff693cb09588c0;hb=f527ad025fa0e74e215f9ceb4ee8a703ef8e4a2d;hp=39ba35a2fb8784bf84ee0adb3fdcde88ab3a0a8f;hpb=ad5d3efae1a492151ab2b08d370d86d27931c3a9;p=m6w6%2Flibmemcached diff --git a/libtest/cmdline.h b/libtest/cmdline.h index 39ba35a2..f6da62be 100644 --- a/libtest/cmdline.h +++ b/libtest/cmdline.h @@ -95,15 +95,36 @@ public: std::string print(); + void use_valgrind(bool arg= true) + { + _use_valgrind= arg; + } + + void use_gdb(bool arg= true) + { + _use_gdb= arg; + } + + std::string arguments(); + + std::string gdb_filename() + { + return _gdb_filename; + } + private: void create_argv(const char *args[]); void delete_argv(); private: const bool _use_libtool; + bool _use_valgrind; + bool _use_gdb; size_t _argc; + std::string _exectuble_name; std::string _exectuble; std::string _exectuble_with_path; + std::string _gdb_filename; Options _options; Pipe stdin_fd; Pipe stdout_fd;