Index: tests/device/cpu.cfa
===================================================================
--- tests/device/cpu.cfa	(revision 77de429e7d24919f2087dcef8722710c65f9967c)
+++ tests/device/cpu.cfa	(revision 72b5805eebfcce6b1f39679ab3e5ffdda0cb2b5c)
@@ -117,4 +117,5 @@
 unsigned find_idx() {
 	int idxs = count_cache_indexes();
+	if( 0 == idxs ) return 0;
 
 	unsigned found_level = 0;
@@ -179,5 +180,5 @@
 	unsigned idx = find_idx();
 	// For all procs check mapping is consistent
-	for(cpu_me; cpu_info.hthrd_count) {
+	if( idx > 0 ) for(cpu_me; cpu_info.hthrd_count) {
 		char buf_me[32];
 		size_t len_me = read_cpuidxinfo_into(cpu_me, idx, "shared_cpu_list", buf_me, 32);
