PATCH 9/10 numactl - fix checkaffinity 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/checkaffinity | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: numactl-1.0.3-rc1/test/checkaffinity =================================================================== --- numactl-1.0.3-rc1.orig/test/checkaffinity 2008-03-28 16:33:11.000000000 -0400 +++ numactl-1.0.3-rc1/test/checkaffinity 2008-03-28 16:42:36.000000000 -0400 @@ -6,7 +6,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 ) for i in $(seq 0 $[$numcpus - 1]) ; do if [ $(numactl --physcpubind=$i ./printcpu) != $i ] ; then -- 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