All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [COMMITTED] [PATCH 1/2] tst_test: TST_TEST_TCONF() do no set tid
@ 2017-05-24 12:05 Cyril Hrubis
  2017-05-24 12:05 ` [LTP] [COMMITTED] [PATCH 2/2] fallocate02: Fix compilation Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Cyril Hrubis @ 2017-05-24 12:05 UTC (permalink / raw)
  To: ltp

It's not needed since we set tid based on argv[0] now.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 include/tst_test.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/tst_test.h b/include/tst_test.h
index eec8e1257..666109550 100644
--- a/include/tst_test.h
+++ b/include/tst_test.h
@@ -192,9 +192,9 @@ int main(int argc, char *argv[])
 
 #endif /* TST_NO_DEFAULT_MAIN */
 
-#define TST_TEST_TCONF(message)                                              \
-        static void tst_do_test(void) { tst_brk(TCONF, "%s", message); };    \
-        static struct tst_test test = { .test_all = tst_do_test, .tid = "" } \
+#define TST_TEST_TCONF(message)                                           \
+        static void tst_do_test(void) { tst_brk(TCONF, "%s", message); }; \
+        static struct tst_test test = { .test_all = tst_do_test }         \
 /*
  * This is a hack to make the testcases link without defining TCID
  */
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [COMMITTED] [PATCH 2/2] fallocate02: Fix compilation
  2017-05-24 12:05 [LTP] [COMMITTED] [PATCH 1/2] tst_test: TST_TEST_TCONF() do no set tid Cyril Hrubis
@ 2017-05-24 12:05 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-05-24 12:05 UTC (permalink / raw)
  To: ltp

This fixes commit:

commit a14f756d5890cee192f1cffe403b7607074a9b72
Author: Cyril Hrubis <chrubis@suse.cz>
Date:   Tue May 23 16:25:25 2017 +02001

    Unify MIN()/MAX() implementation + cleanup

The LLONG_MAX definition is missing on some distributions unless the
test includes limits.h as well.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/fallocate/fallocate02.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/fallocate/fallocate02.c b/testcases/kernel/syscalls/fallocate/fallocate02.c
index bee0863a8..4840eaf28 100644
--- a/testcases/kernel/syscalls/fallocate/fallocate02.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate02.c
@@ -36,6 +36,7 @@
 #include <fcntl.h>
 #include <inttypes.h>
 #include <sys/utsname.h>
+#include <limits.h>
 
 #include "test.h"
 #include "safe_macros.h"
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 12:05 [LTP] [COMMITTED] [PATCH 1/2] tst_test: TST_TEST_TCONF() do no set tid Cyril Hrubis
2017-05-24 12:05 ` [LTP] [COMMITTED] [PATCH 2/2] fallocate02: Fix compilation Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.