Index: tests/meta/dumpable.cfa
===================================================================
--- tests/meta/dumpable.cfa	(revision a8e9e9defec5091dc80f8278c133c090ed3e995c)
+++ tests/meta/dumpable.cfa	(revision ff55092591d126cef5a19c901368bf08ea4e79f7)
@@ -115,6 +115,6 @@
 
 	try {
-		const char * expected = "core";
-		const int sz = sizeof("core");
+		const char * expected = "core\n";
+		const int sz = sizeof("core\n");
 		char buf[512];
 		ret = read(cp, buf, 512);
@@ -123,5 +123,6 @@
 			return;
 		}
-		if(strncmp(expected, buf, sz) != 0) {
+		ret = strncmp(expected, buf, sz - 1);
+		if(ret != 0) {
 			serr | "/proc/sys/kernel/core_pattern does not contain 'core', was:" | nl | nl | buf | nl
 			     | "Test script expect cores files to be dumped with name 'core' in current working directory." | nl
