diff options
author | Ben Elliston <bje@gnu.org> | 2018-12-03 21:49:51 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2018-12-04 11:17:35 +1100 |
commit | cb56b0093c860f2e66544813cd354bcb46b4ac88 (patch) | |
tree | 19d254361ee06d0fd42aecdd8083c5a02fdcc287 /dejagnu.h | |
parent | 22655ad50d57fb86e47d3383bb6e82696cce1966 (diff) | |
download | dejagnu-cb56b0093c860f2e66544813cd354bcb46b4ac88.zip dejagnu-cb56b0093c860f2e66544813cd354bcb46b4ac88.tar.gz dejagnu-cb56b0093c860f2e66544813cd354bcb46b4ac88.tar.bz2 |
* dejagnu.h (TestState): Remove const char * variants of
pass(), xpass(), fail(), xfail(), untested(), unresolved() for
C++. A const char * will be implicitly converted to
std::string.
Diffstat (limited to 'dejagnu.h')
-rw-r--r-- | dejagnu.h | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -211,12 +211,6 @@ class TestState { std::cout << "\t" << outstate[PASSED] << s << std::endl; } - void pass (const char *c) - { - std::string s = c; - pass (s); - } - void xpass (std::string s) { xpassed++; @@ -225,12 +219,6 @@ class TestState { std::cout << "\t" << outstate[XPASSED] << s << std::endl; } - void xpass (const char *c) - { - std::string s = c; - xpass (s); - } - void fail (std::string s) { failed++; @@ -239,12 +227,6 @@ class TestState { std::cout << "\t" << outstate[FAILED] << s << std::endl; } - void fail (const char *c) - { - std::string s = c; - fail (s); - } - void xfail (std::string s) { xfailed++; @@ -253,12 +235,6 @@ class TestState { std::cout << "\t" << outstate[XFAILED] << s << std::endl; } - void xfail (const char *c) - { - std::string s = c; - xfail (s); - } - void untested (std::string s) { untest++; @@ -267,12 +243,6 @@ class TestState { std::cout << "\t" << outstate[UNTESTED] << s << std::endl; } - void untested (const char *c) - { - std::string s = c; - untested (s); - } - void unresolved (std::string s) { unresolve++; @@ -281,12 +251,6 @@ class TestState { std::cout << "\t" << outstate[UNRESOLVED] << s << std::endl; } - void unresolved (const char *c) - { - std::string s = c; - unresolved (s); - } - void totals (void) { std::cout << "\t#passed:\t\t" << passed << std::endl; |