Skip to contentSkip to conversation

Patch for better error messages in posix testsuite

Xenomai-core Applied Niklaus Giger 2 participants 2 messages May 15, 2006 – May 16, 2006

lore
Share & tools
lore
#0 lore raw

Hi

If one greps the output of the posix testsuite failures does not show up cleanly as the assertions are terminated by a line feed.

Please apply the following patch which fixes this problem

skins/posix/testsuite/xntest.c (Arbeitskopie) renamed from skins/posix/testsuite/xntest.c (Revision 1103) +1 -1
Index: sim/skins/posix/testsuite/xntest.c
===================================================================
@@ -91,7 +91,7 @@
     ++tests;
     if(!status) {
         ++test_failures;
-        xnarch_printf("%s:%d: TEST %s failed.\n", file, line, assertion);
+        xnarch_printf("%s:%d: TEST failed: %s\n", file, line, assertion);
     } else
         xnarch_printf("%s:%d TEST passed.\n", file, line);
     xnlock_put_irqrestore(&test_lock, s);

Thanks in advance

Signature · 1 line
Niklaus Giger
#1 lore raw
Quoted 6 lines · Niklaus Giger

Hi

If one greps the output of the posix testsuite failures does not show up cleanly as the assertions are terminated by a line feed.

Please apply the following patch which fixes this problem

Applied, thanks.

Signature · 1 line
					    Gilles Chanteperdrix.