]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite_hooks.cc: Update coypright and follow style guidelines.
authorMark Mitchell <mark@codesourcery.com>
Tue, 4 Jan 2005 00:17:16 +0000 (00:17 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 4 Jan 2005 00:17:16 +0000 (00:17 +0000)
* testsuite/testsuite_hooks.cc: Update coypright and follow style
guidelines.
* testsuite/testsuite_hooks.h: Likewise.
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
semaphores, not sleep.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
Likewise.
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.

From-SVN: r92877

14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
libstdc++-v3/testsuite/27_io/objects/char/7.cc
libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc
libstdc++-v3/testsuite/testsuite_hooks.cc
libstdc++-v3/testsuite/testsuite_hooks.h

index aee8b4f649e2286a1e4cf4efe1b35b4b9db328a4..453b1d00ff451e6d1e733159991f3ebf009d321c 100644 (file)
@@ -1,5 +1,22 @@
 2005-01-03  Mark Mitchell  <mark@codesourcery.com>
 
+       * testsuite/testsuite_hooks.cc: Update coypright and follow style
+       guidelines.
+       * testsuite/testsuite_hooks.h: Likewise.
+       * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
+       semaphores, not sleep.
+       * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
+       Likewise.
+       * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
+       * testsuite/27_io/objects/char/7.cc: Likewise.
+       * testsuite/27_io/objects/char/9661-1.cc: Likewise.
+       * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
+       * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
+
        * configure.ac: Check for sys/ipc.h and sys/sem.h. 
        * config.h.in: Regenerated.
        * configure: Likewise.
index 1d251174099a3cd9129d79dfbac6dd252f907b27..96033e5a658399dbeb1ccfb7fb999f524ea3d83a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 57f6de9c5ee61b7d8355884013198d101cffac74..d46184a705cf843141571f2d7a66bbe69f3a80b8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index ec2d321bbf5d023265da79b0533dda8f1ad28d35..e62ed05b5e0743ec959d1cf5f0498aabb087b739 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 07f6529de4aa1912906574520c636889f380fe6a..79cd00a15b2de22f68397915dfc9b5a75428fb1e 100644 (file)
@@ -1,6 +1,6 @@
 // 2004-01-11  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index a87bf8ffd60fb8ee1016c0703ce6feffb8ee5cca..2e6f9ec414944c3adc19eb754dc46ac46dd8a3ab 100644 (file)
@@ -1,6 +1,6 @@
 // 2004-04-16  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 7c5aeab5d87e357c952a29eeb8bd1282c025dfa0..775c72c1c6ab1041d8c0ac667946737d317327f7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 3bbff078f8e91c2e19e285729363211484eb148c..88ba371d1d9386259b4b150bf8cb8fb9c4f44c6c 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 609415882b6be76df141322f716e87debafe8b29..9650f7b26dfe5d0e1deec1f315639da02abd737e 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-04-26 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 9530328afc9aeff78ab86dacfbeae8320f72b604..51f2de1402d86917fdd0f9dcf79822892e9f988b 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-04-30  Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index ee7aac6ec1661ba779e0f4f67ff6d1c809e3b636..f51b3de8d574c1529d0a69b1010874f5788d9fbc 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-05-01 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index f944ef2524aa21c5e6f27b33300e70a4086be188..c9e848aaf61fba3d90ad4428ed98cf414465ddce 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-04-30  Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index e4cf7fdd7a7085dfdbf00ce58564f561335912a7..fba220968700c804e8e6e0d91feaf30092bb28b6 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 // Utility subroutines for the C++ library testsuite. 
 //
-// Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+// Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -278,8 +278,7 @@ namespace __gnu_test
   };
 #endif
 
-  semaphore::semaphore ()
-  {
+  semaphore::semaphore() {
 #ifdef _GLIBCXX_SYSV_SEM
     // Remeber the PID for the process that created the semaphore set
     // so that only one process will destroy the set.
@@ -295,42 +294,40 @@ namespace __gnu_test
 #endif
 
     // Get a semaphore set with one semaphore.
-    sem_set_ = semget (IPC_PRIVATE, 1, SEM_R | SEM_A);
+    sem_set_ = semget(IPC_PRIVATE, 1, SEM_R | SEM_A);
     if (sem_set_ == -1)
       throw std::runtime_error ("could not obtain semaphore set");
 
     // Initialize the semaphore.
     union semun val;
     val.val = 0;
-    if (semctl (sem_set_, 0, SETVAL, val) == -1)
-      throw std::runtime_error ("could not initialize semaphore");
+    if (semctl(sem_set_, 0, SETVAL, val) == -1)
+      throw std::runtime_error("could not initialize semaphore");
 #else
     // There are no semaphores on this system.  We have no way to mark
     // a test as "unsupported" at runtime, so we just exit, pretending
     // that the test passed.
-    exit (0);
+    exit(0);
 #endif
   }
 
-  semaphore::~semaphore ()
-  {
+  semaphore::~semaphore() {
 #ifdef _GLIBCXX_SYSV_SEM
     union semun val;
     // Destroy the semaphore set only in the process that created it. 
-    if (pid_ == getpid ())
-      semctl (sem_set_, 0, IPC_RMID, val);
+    if (pid_ == getpid())
+      semctl(sem_set_, 0, IPC_RMID, val);
 #endif
   }
 
   void
-  semaphore::signal ()
-  {
+  semaphore::signal() {
 #ifdef _GLIBCXX_SYSV_SEM
     struct sembuf op[1] = {
       { 0, 1, 0 }
     };
-    if (semop (sem_set_, op, 1) == -1)
-      throw std::runtime_error ("could not signal semaphore");
+    if (semop(sem_set_, op, 1) == -1)
+      throw std::runtime_error("could not signal semaphore");
 #endif
   }
 
@@ -340,8 +337,8 @@ namespace __gnu_test
     struct sembuf op[1] = {
       { 0, -1, SEM_UNDO }
     };
-    if (semop (sem_set_, op, 1) == -1)
-      throw std::runtime_error ("could not wait for semaphore");
+    if (semop(sem_set_, op, 1) == -1)
+      throw std::runtime_error("could not wait for semaphore");
 #endif    
   }
 }; // namespace __gnu_test
index 79495fbd357caba0d86f5eb9734f6f6773436e24..1ce9c65b0dfacf9ba45c94d1a2d46d30309cace1 100644 (file)
@@ -387,17 +387,17 @@ namespace __gnu_test
   public:
     // Creates a binary semaphore.  The semaphore is initially in the
     // unsignaled state. 
-    semaphore ();
+    semaphore();
 
     // Destroy the semaphore.
     ~semaphore();
 
     // Signal the semaphore.  If there are processes blocked in
     // "wait", exactly one will be permitted to proceed.
-    void signal ();
+    void signal();
 
     // Wait until the semaphore is signaled.
-    void wait ();
+    void wait();
 
   private:
     int sem_set_;