aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMAddTests/testhelper.cpp
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2015-05-11 13:56:28 +0100
committerAlex Merry <alex.merry@kde.org>2015-05-13 19:22:15 +0100
commit1b636b43d2bf4dca0332a2e2b36affa67fbe1e0b (patch)
tree6a82d1acbdd48c76ab94b1aa4921696aef3bf4e1 /tests/ECMAddTests/testhelper.cpp
parent09822e2631644875d3b22fef54b9bfa30a295169 (diff)
downloadextra-cmake-modules-1b636b43d2bf4dca0332a2e2b36affa67fbe1e0b.tar.gz
extra-cmake-modules-1b636b43d2bf4dca0332a2e2b36affa67fbe1e0b.tar.bz2
Add unit tests for ECMAddTests module.
REVIEW: 123722
Diffstat (limited to 'tests/ECMAddTests/testhelper.cpp')
-rw-r--r--tests/ECMAddTests/testhelper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ECMAddTests/testhelper.cpp b/tests/ECMAddTests/testhelper.cpp
new file mode 100644
index 00000000..00d0ceed
--- /dev/null
+++ b/tests/ECMAddTests/testhelper.cpp
@@ -0,0 +1,8 @@
+#include "testhelper.h"
+#include <fstream>
+#include <string>
+
+void make_test_file(const char *filename)
+{
+ std::ofstream(filename) << "test" << std::endl;
+}