aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/condition_variable_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/condition_variable_TEST.cc')
-rw-r--r--paludis/util/condition_variable_TEST.cc28
1 files changed, 9 insertions, 19 deletions
diff --git a/paludis/util/condition_variable_TEST.cc b/paludis/util/condition_variable_TEST.cc
index c6a061a29..1cb20530a 100644
--- a/paludis/util/condition_variable_TEST.cc
+++ b/paludis/util/condition_variable_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007 Ciaran McCreesh
+ * Copyright (c) 2007, 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
@@ -17,27 +17,17 @@
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "condition_variable.hh"
-#include <test/test_framework.hh>
-#include <test/test_runner.hh>
+#include <paludis/util/condition_variable.hh>
+
+#include <gtest/gtest.h>
using namespace paludis;
-using namespace test;
-namespace test_cases
+TEST(ConditionVariable, Signal)
{
- struct ConditionTest : TestCase
- {
- ConditionTest() : TestCase("condition") { }
-
- void run()
- {
- ConditionVariable c;
- c.signal();
- c.broadcast();
- TEST_CHECK(true);
- }
- } test_condition;
+ ConditionVariable c;
+ c.signal();
+ c.broadcast();
+ SUCCEED();
}
-