aboutsummaryrefslogtreecommitdiff
path: root/testcases/misc
diff options
context:
space:
mode:
authorsubrata_modak <subrata_modak>2009-02-04 06:04:57 +0000
committersubrata_modak <subrata_modak>2009-02-04 06:04:57 +0000
commite3d65fb7835e63641041ad146382c8e1360e21a1 (patch)
tree150d54cf0f1efba4d005b6d7e88e8d679e0229c0 /testcases/misc
parent503be94bd541805fabdaa662da73682787ee9875 (diff)
Fix a build failure of tcore on non-x86 archs: I report a build failure and a patch for it. If your system is not either i386 or x86_64, making in ltp-full-20090131 fails as follows: It's because wrong position of TST_TOTAL definition. Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>.
Diffstat (limited to 'testcases/misc')
-rw-r--r--testcases/misc/tcore_patch_test_suites/tcore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testcases/misc/tcore_patch_test_suites/tcore.c b/testcases/misc/tcore_patch_test_suites/tcore.c
index f3dc450fc..b671b7a26 100644
--- a/testcases/misc/tcore_patch_test_suites/tcore.c
+++ b/testcases/misc/tcore_patch_test_suites/tcore.c
@@ -27,7 +27,6 @@ extern int Tst_count; /* counter for tst_xxx routines. */
extern char *TESTDIR; /* temporary dir created by tst_tmpdir() */
/* Global Variables */
char *TCID = "tcore"; /* test program identifier. */
-int TST_TOTAL = 1; /* total number of tests in this file. */
#if defined __i386__ || defined(__x86_64__)
#include <stdio.h>
@@ -38,6 +37,8 @@ int TST_TOTAL = 1; /* total number of tests in this file. */
#define BUFFER_SIZE 16
+int TST_TOTAL = 1; /* total number of tests in this file. */
+
/* Circular buffer of integers. */
struct prodcons