uatomic/x86: Remove redundant memory barriers
[urcu.git] / tests / unit / test_urcu_multiflavor_single_unit.c
index 909d4d2aaa131410a88604cb7962d84fbd5c4378..5548744e2f6ea4bfb75de28ee9566c552e8c62a7 100644 (file)
@@ -1,23 +1,9 @@
+// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * test_urcu_multiflavor.c
- *
  * Userspace RCU library - test multiple RCU flavors into one program
- *
- * Copyright February 2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef DYNAMIC_LINK_TEST
@@ -27,7 +13,6 @@
 #include <urcu/urcu-mb.h>
 #include <urcu/urcu-bp.h>
 #include <urcu/urcu-memb.h>
-#include <urcu/urcu-signal.h>
 #include <urcu/urcu-qsbr.h>
 
 #include <stdlib.h>
@@ -63,16 +48,6 @@ static int test_mf_memb(void)
        return 0;
 }
 
-static int test_mf_signal(void)
-{
-       urcu_signal_register_thread();
-       urcu_signal_read_lock();
-       urcu_signal_read_unlock();
-       urcu_signal_synchronize_rcu();
-       urcu_signal_unregister_thread();
-       return 0;
-}
-
 static int test_mf_qsbr(void)
 {
        urcu_qsbr_register_thread();
@@ -83,14 +58,13 @@ static int test_mf_qsbr(void)
        return 0;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
-       plan_tests(5);
+       plan_tests(4);
 
        ok1(!test_mf_mb());
        ok1(!test_mf_bp());
        ok1(!test_mf_memb());
-       ok1(!test_mf_signal());
        ok1(!test_mf_qsbr());
 
        return exit_status();
This page took 0.02355 seconds and 4 git commands to generate.