aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-20 01:00:59 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-20 01:00:59 +0100
commit6d1ec28aa1098bcbf74e253a882a82b0b6e155a6 (patch)
treedd9f97d49dab79571daee7f2953756e9bb39770e
parent36f12660f2e0f13b8ec59c513121ffdf72d2cf4f (diff)
downloadpaludis-6d1ec28aa1098bcbf74e253a882a82b0b6e155a6.tar.gz
paludis-6d1ec28aa1098bcbf74e253a882a82b0b6e155a6.tar.xz
Utterly trivial pty test
-rw-r--r--.gitignore1
-rw-r--r--paludis/util/files.m42
-rw-r--r--paludis/util/pty_TEST.cc39
3 files changed, 41 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 088a49b..c6c754c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -387,6 +387,7 @@ paludis-*.*.*.tar.bz2
/paludis/util/output_wrapper_TEST
/paludis/util/outputwrapper
/paludis/util/pretty_print_TEST
+/paludis/util/pty_TEST
/paludis/util/random_TEST
/paludis/util/rmd160_TEST
/paludis/util/safe_ifstream_TEST
diff --git a/paludis/util/files.m4 b/paludis/util/files.m4
index 5b39280..2207cdb 100644
--- a/paludis/util/files.m4
+++ b/paludis/util/files.m4
@@ -53,7 +53,7 @@ add(`output_wrapper', `test', `testscript')
add(`pipe', `hh', `cc')
add(`pretty_print', `hh', `cc', `test')
add(`private_implementation_pattern', `hh', `impl')
-add(`pty', `hh', `cc')
+add(`pty', `hh', `cc', `test')
add(`random', `hh', `cc', `test')
add(`remove_shared_ptr', `hh')
add(`rmd160', `hh', `cc', `test')
diff --git a/paludis/util/pty_TEST.cc b/paludis/util/pty_TEST.cc
new file mode 100644
index 0000000..3a01130
--- /dev/null
+++ b/paludis/util/pty_TEST.cc
@@ -0,0 +1,39 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2009 Ciaran McCreesh
+ *
+ * This file is part of the Paludis package manager. Paludis is free software;
+ * you can redistribute it and/or modify it under the terms of the GNU General
+ * Public License version 2, as published by the Free Software Foundation.
+ *
+ * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <paludis/util/pty.hh>
+#include <test/test_runner.hh>
+#include <test/test_framework.hh>
+
+using namespace paludis;
+using namespace test;
+
+namespace test_cases
+{
+ struct PtyTest : TestCase
+ {
+ PtyTest() : TestCase("ptys") { }
+
+ void run()
+ {
+ Pty pty;
+ }
+ } test_pty;
+}
+