kunit: increase KUNIT_LOG_SIZE to 2048 bytes
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Mar 2023 11:53:31 +0000 (13:53 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 30 Mar 2023 00:55:41 +0000 (18:55 -0600)
The s390 specific test_unwind kunit test has 39 parameterized tests. The
results in debugfs are truncated since the full log doesn't fit into 1500
bytes.
Therefore increase KUNIT_LOG_SIZE to 2048 bytes in a similar way like it
was done recently with commit "kunit: fix bug in debugfs logs of
parameterized tests". With that the whole test result is present.

Reported-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h

index 9721584027d844d7215107e4e07daeddd79af5d1..57b309c6ca27b3ae0c6348cd3305cf4ecb6b1913 100644 (file)
@@ -34,7 +34,7 @@ DECLARE_STATIC_KEY_FALSE(kunit_running);
 struct kunit;
 
 /* Size of log associated with test. */
-#define KUNIT_LOG_SIZE 1500
+#define KUNIT_LOG_SIZE 2048
 
 /* Maximum size of parameter description string. */
 #define KUNIT_PARAM_DESC_SIZE 128