summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h b/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
index b489c84b8ec..35ddd2209b9 100644
--- a/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
+++ b/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
@@ -15,16 +15,21 @@ namespace test_harness {
class test {
public:
configuration *_configuration;
- static const std::string _name;
+ static const char *_name;
/*
* All tests will implement this initially, the return value from it will indicate whether the
* test was successful or not.
*/
virtual int run() = 0;
- test(std::string config)
+ test(const char *config)
{
- _configuration = new configuration(_name.c_str(), config.c_str());
+ _configuration = new configuration(_name, config);
+ }
+
+ ~test()
+ {
+ delete _configuration;
}
};
} // namespace test_harness