From: Lee Schermerhorn <lee.schermerhorn@hp.com>
Date: Wed, 02 Apr 2008 14:35:25 -0400

PATCH 10/10 numactl - fix checktopology regression test

Against:  numactl-1.0.3-rc1

Now that /sys/devices/system/node contains attribute files,
in addition to the 'node[0-9]*' subdirectories, we can't simply
count the directory entries.  We need to count only the 'node[0-9]*' 
subdirectories.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Christoph Lameter <clameter@sgi.com>

 test/checktopology |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: Numactl.d/test/checktopology
===================================================================
--- Numactl.d.orig/test/checktopology	2007-08-16 10:43:11.000000000 -0400
+++ Numactl.d/test/checktopology	2008-02-26 13:51:01.000000000 -0500
@@ -7,7 +7,7 @@ export LD_LIBRARY_PATH=$BASE
 export PATH=$BASE:$PATH
 
 numcpus=$(grep -c processor /proc/cpuinfo)
-numnodes=$(ls /sys/devices/system/node | wc -l)
+numnodes=$(ls -1d /sys/devices/system/node/node[0-9]* | wc -l)
 
 nccpus=$(numactl --hardware | grep cpus | sed 's/node.*cpus://' | wc -w ) 
 ncnodes=$(numactl --hardware | grep -c 'node.*size' ) 

