Index: src/tests/test.py
===================================================================
--- src/tests/test.py	(revision 7a2c5391125b9883c62c426c1d9f44b5e4e433a5)
+++ src/tests/test.py	(revision 644ec6a57353d710d8b07ac19973309c7a263be2)
@@ -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
