OSDN Git Service

2011-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 30_threads / thread / members / hardware_concurrency.cc
index c2917ca..51d024d 100644 (file)
@@ -4,8 +4,9 @@
 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
 // { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
+// { dg-require-nprocs "" }
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 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
@@ -29,8 +30,7 @@ int main()
 {
   bool test __attribute__((unused)) = true;
 
-  // Current implementation punts on this.
-  VERIFY( std::thread::hardware_concurrency() == 0 );
+  VERIFY( std::thread::hardware_concurrency() >= 1 );
 
   return 0;
 }