diff options
author | 2011-03-20 15:32:58 +0000 | |
---|---|---|
committer | 2011-03-20 16:20:42 +0000 | |
commit | ea07f6719dbf8ad865e4fd57259918567b092712 (patch) | |
tree | 9282d809fdf6305be8af042b1e8ff7b16a8dba68 | |
parent | 064eb1193cd95639c3728e58b503ee32eaa05dca (diff) | |
download | paludis-ea07f6719dbf8ad865e4fd57259918567b092712.tar.gz paludis-ea07f6719dbf8ad865e4fd57259918567b092712.tar.xz |
gtest more
-rw-r--r-- | paludis/util/files.m4 | 2 | ||||
-rw-r--r-- | 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 <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(); } |