From ea07f6719dbf8ad865e4fd57259918567b092712 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Sun, 20 Mar 2011 15:32:58 +0000 Subject: gtest more --- paludis/util/files.m4 | 2 +- paludis/util/pty_TEST.cc | 20 ++++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/paludis/util/files.m4 b/paludis/util/files.m4 index 0a31ee93f..39f3bd555 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 3a0113038..28812f83c 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 -#include -#include + +#include 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(); } -- cgit v1.2.3