diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestClient.hpp | 5 | ||||
-rw-r--r-- | tests/ingen_test.cpp | 5 | ||||
-rw-r--r-- | tests/test_utils.hpp | 5 | ||||
-rw-r--r-- | tests/tst_FilePath.cpp | 1 |
4 files changed, 13 insertions, 3 deletions
diff --git a/tests/TestClient.hpp b/tests/TestClient.hpp index ab69a4f9..da749660 100644 --- a/tests/TestClient.hpp +++ b/tests/TestClient.hpp @@ -19,9 +19,14 @@ #include "ingen/Interface.hpp" #include "ingen/Log.hpp" +#include "ingen/Message.hpp" +#include "ingen/Status.hpp" +#include "ingen/URI.hpp" #include <boost/variant/get.hpp> +#include <cstdlib> + namespace ingen { class TestClient : public Interface diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index 711a9ab7..eaa6a0ab 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -41,7 +41,9 @@ #include <chrono> #include <cstdint> #include <cstdlib> +#include <exception> #include <iostream> +#include <map> #include <memory> #include <string> #include <utility> @@ -65,7 +67,8 @@ ingen_try(bool cond, const char* msg) FilePath real_file_path(const char* path) { - std::unique_ptr<char, FreeDeleter<char>> real_path{realpath(path, nullptr)}; + std::unique_ptr<char, FreeDeleter<char>> real_path{realpath(path, nullptr), + FreeDeleter<char>{}}; return FilePath{real_path.get()}; } diff --git a/tests/test_utils.hpp b/tests/test_utils.hpp index 4951ade1..57446ac5 100644 --- a/tests/test_utils.hpp +++ b/tests/test_utils.hpp @@ -14,9 +14,12 @@ along with Ingen. If not, see <http://www.gnu.org/licenses/>. */ +// IWYU pragma: no_include "ingen/FilePath.hpp" + #include "ingen/fmt.hpp" #include <iostream> +#include <string> #define EXPECT_TRUE(value) \ do { \ @@ -39,6 +42,6 @@ if (!((value) == (expected))) { \ std::cerr << fmt("error: %1%:%2%: %3% != %4%\n", \ __FILE__, __LINE__, (#value), (#expected)); \ - std::cerr << "note: actual value: " << value << std::endl; \ + std::cerr << "note: actual value: " << (value) << std::endl; \ } \ } while (0) diff --git a/tests/tst_FilePath.cpp b/tests/tst_FilePath.cpp index 34ff09da..75744f46 100644 --- a/tests/tst_FilePath.cpp +++ b/tests/tst_FilePath.cpp @@ -19,7 +19,6 @@ #include "ingen/FilePath.hpp" #include "ingen/fmt.hpp" -#include <boost/utility/string_view.hpp> #include <boost/utility/string_view_fwd.hpp> #include <string> |