Index: src/tests/test.py
===================================================================
--- src/tests/test.py	(revision 873ffb7be738eecb9794a684ca51a30cf5e730c6)
+++ src/tests/test.py	(revision 20340c212c8e964968b6c5de373371528e491e2d)
@@ -23,12 +23,16 @@
 # parses the Makefile to find the machine type (32-bit / 64-bit)
 def getMachineType():
-	with open('Makefile') as file:
-		makefile = file.read()
-		m = re.search("CFA_FLAGS\s*=\s*-m(.*)", makefile)
-		return m.group(1) if m else '64'
+	sh('echo "int main() { return 0; }" > .dummy.c')
+	sh("make .dummy", print2stdout=False)
+	_, out = sh("file .dummy", print2stdout=False)
+	sh("rm -f .dummy.c > /dev/null 2>&1")
+	sh("rm -f .dummy > /dev/null 2>&1")
+	return re.search("ELF\s([0-9]+)-bit", out).group(1)
 
 # reads the directory ./.expect and indentifies the tests
 def listTests():
 	machineType = getMachineType()
+
+	print(machineType)
 
 	# tests directly in the .expect folder will always be processed
