]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: improve assert report
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Jan 2015 18:28:16 +0000 (16:28 -0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Jan 2015 18:28:16 +0000 (16:28 -0200)
testsuite/testsuite.h

index e12170e45244a0df9b9f357956542aa5f038e98a..9db1d1ab554d2acc8c29edaa70095b547660d3be 100644 (file)
@@ -122,7 +122,7 @@ int test_run(const struct test *t);
 #define assert_return(expr, r)                                         \
        do {                                                            \
                if ((!(expr))) {                                        \
-                       ERR("Failed assertion: " #expr "%s:%d %s",      \
+                       ERR("Failed assertion: " #expr " %s:%d %s\n",   \
                            __FILE__, __LINE__, __PRETTY_FUNCTION__);   \
                        return (r);                                     \
                }                                                       \