aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 15:32:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 16:20:42 +0000
commitea07f6719dbf8ad865e4fd57259918567b092712 (patch)
tree9282d809fdf6305be8af042b1e8ff7b16a8dba68
parent064eb1193cd95639c3728e58b503ee32eaa05dca (diff)
downloadpaludis-ea07f6719dbf8ad865e4fd57259918567b092712.tar.gz
paludis-ea07f6719dbf8ad865e4fd57259918567b092712.tar.xz
gtest more
-rw-r--r--paludis/util/files.m42
-rw-r--r--paludis/util/pty_TEST.cc20
2 files changed, 7 insertions, 15 deletions
diff --git a/paludis/util/files.m4 b/paludis/util/files.m4
index 0a31ee9..39f3bd5 100644
--- a/paludis/util/files.m4
+++ b/paludis/util/files.m4
@@ -63,7 +63,7 @@ add(`pipe', `hh', `cc')
add(`pool', `hh', `cc', `impl', `test')
add(`pretty_print', `hh', `cc', `test')
add(`process', `hh', `cc', `fwd', `test', `testscript')
-add(`pty', `hh', `cc', `test')
+add(`pty', `hh', `cc', `gtest')
add(`random', `hh', `cc', `test')
add(`realpath', `hh', `cc', `gtest', `testscript')
add(`remove_shared_ptr', `hh')
diff --git a/paludis/util/pty_TEST.cc b/paludis/util/pty_TEST.cc
index 3a01130..28812f8 100644
--- a/paludis/util/pty_TEST.cc
+++ b/paludis/util/pty_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2011 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
@@ -18,22 +18,14 @@
*/
#include <paludis/util/pty.hh>
-#include <test/test_runner.hh>
-#include <test/test_framework.hh>
+
+#include <gtest/gtest.h>
using namespace paludis;
-using namespace test;
-namespace test_cases
+TEST(Pty, Works)
{
- struct PtyTest : TestCase
- {
- PtyTest() : TestCase("ptys") { }
-
- void run()
- {
- Pty pty;
- }
- } test_pty;
+ Pty pty;
+ SUCCEED();
}