A lambda-based C++ unit-testing framework.
Revisão | 5e6fd4546830f54c70841fd1cdaf5aab1da2cc9e (tree) |
---|---|
Hora | 2020-01-19 21:07:08 |
Autor | Kaz Nishimura <kazssym@linu...> |
Commiter | Kaz Nishimura |
Add 'TestDriver::main' implementation
@@ -1,5 +1,5 @@ | ||
1 | -// engine.cpp - test engine | |
2 | -// Copyright (C) 2018 Kaz Nishimura | |
1 | +// driver.cpp | |
2 | +// Copyright (C) 2018-2020 Kaz Nishimura | |
3 | 3 | // |
4 | 4 | // This program is free software: you can redistribute it and/or modify it |
5 | 5 | // under the terms of the GNU General Public License as published by the Free |
@@ -20,10 +20,21 @@ | ||
20 | 20 | #include <config.h> |
21 | 21 | #endif |
22 | 22 | |
23 | +#define _CPPUNITX_DRIVER_IMPLEMENTATION 1 | |
23 | 24 | #include <bits/cppunitx/driver.h> |
25 | + | |
24 | 26 | #include <cstdlib> |
25 | 27 | |
28 | +using namespace cppunitx; | |
29 | + | |
30 | +// Class 'TestDriver' implementation. | |
31 | + | |
32 | +int TestDriver::main(const int argc, char **const argv) | |
33 | +{ | |
34 | + return EXIT_FAILURE; // TODO: Implement this function. | |
35 | +} | |
36 | + | |
26 | 37 | int cppunitx::main(const int argc, char *argv[]) |
27 | 38 | { |
28 | - return EXIT_FAILURE; // TODO: Do work. | |
39 | + return TestDriver::main(argc, argv); | |
29 | 40 | } |