How about introducing TCID_DEFINE? I'm not sure puttint TCID_DEFINE macro to test.h. I'm not sure using a symbol as an argument for TCID_DEFINE macro is better than using a string. (I had strong lisp backgroud:-). If this acceptable, I'll update related documents and test cases I worked. Signed-off-by: Masatake YAMATO <yamato@redhat.com>.
diff --git a/include/test.h b/include/test.h
index 343a640..f10c5e4 100644
--- a/include/test.h
+++ b/include/test.h
@@ -30,7 +30,7 @@
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*/
-/* $Id: test.h,v 1.13 2008/05/06 15:47:54 vapier Exp $ */
+/* $Id: test.h,v 1.14 2008/08/19 07:00:49 subrata_modak Exp $ */
#ifndef __TEST_H__
#define __TEST_H__
@@ -241,6 +241,19 @@
extern int tst_is_cwd_tmpfs();
extern int tst_cwd_has_free(int required_kib);
+
+
+#ifdef TST_USE_COMPAT16_SYSCALL
+#define TCID_BIT_SUFFIX "_16"
+#elif TST_USE_NEWER64_SYSCALL
+#define TCID_BIT_SUFFIX "_64"
+#else
+#define TCID_BIT_SUFFIX ""
+#endif
+#define TCID_DEFINE(ID) \
+ char *TCID = (#ID TCID_BIT_SUFFIX)
+
+
extern int Tst_count;
/* self_exec.c functions */