You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/06/28 19:23:59 UTC

svn commit: r551627 - /incubator/stdcxx/trunk/tests/src/thread.cpp

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  <se...@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"