Index: tests/device/cpu.cfa
===================================================================
--- tests/device/cpu.cfa	(revision 145dcd5639a55333a3a239964505a9543d512d44)
+++ tests/device/cpu.cfa	(revision e50d9cb8bcb9d4dee3eb25c5c5ffe27efe455a18)
@@ -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);
