stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r551627 - /incubator/stdcxx/trunk/tests/src/thread.cpp
Date Thu, 28 Jun 2007 17:23:59 GMT
Author: sebor
Date: Thu Jun 28 10:23:58 2007
New Revision: 551627

URL: http://svn.apache.org/viewvc?view=rev&rev=551627
Log:
2007-06-28  Martin Sebor  <sebor@roguewave.com>

	* thread.cpp [Linux] (rw_get_cpus): Avoided invoking system utilities
	such as cat and grep using absolute pathnames since they are installed
	in different directories on different distributions of Linux (e.g.,
	grep is in /bin on Red Hat Linux but in /usr/bin on SuSE).

Modified:
    incubator/stdcxx/trunk/tests/src/thread.cpp

Modified: incubator/stdcxx/trunk/tests/src/thread.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/thread.cpp?view=diff&rev=551627&r1=551626&r2=551627
==============================================================================
--- incubator/stdcxx/trunk/tests/src/thread.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/thread.cpp Thu Jun 28 10:23:58 2007
@@ -391,9 +391,9 @@
         "/etc/lsdev -Cc processor | /usr/bin/wc -l"
 #  elif defined (_RWSTD_OS_LINUX)
         // Linux: cat /proc/cpuinfo | grep processor | wc -l
-        "/usr/bin/cat /proc/cpuinfo "
-        "  | /usr/bin/grep processor "
-        "  | /usr/bin/wc -l"
+        "cat /proc/cpuinfo "
+        "  | grep processor "
+        "  | wc -l"
 #  elif defined (_RWSTD_OS_FREEBSD)
         // FreeBSD: /sbin/sysctl -n hw.ncpu
         "/sbin/sysctl -n hw.ncpu"



Mime
View raw message