[PATCH 10/10] numactl/libnuma - fix checktopology regression test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>

 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' ) 
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux