Signed-off by : Vinay Sridhar <vinaysridhar@in.ibm.com>

--------------Patch------------------

diff -Nuarp ltp-full-20080331_old/testcases/misc/math/float/bessel/genbessel.c ltp-full-20080331/testcases/misc/math/float/bessel/genbessel.c
--- ltp-full-20080331_old/testcases/misc/math/float/bessel/genbessel.c	2008-03-31 12:55:08.000000000 +0530
+++ ltp-full-20080331/testcases/misc/math/float/bessel/genbessel.c	2008-04-21 14:32:25.000000000 +0530
@@ -37,8 +37,6 @@
 #include        <sys/signal.h>
 #include        <math.h>
 
-
-
 /*****************************************************************
  * create file: 
  * 	
@@ -48,6 +46,9 @@
  *			   RESULT_CREATE for output result file
  */
 
+char *TCID = "genbessel";
+int TST_TOTAL = 1;
+
 int create_file(char *func_name, int NbVal)
 {
 	pid_t myproc;
@@ -71,24 +72,33 @@ int main(int argc, char *argv[])
 {
 	char *funct;
 	pid_t child;
+	int buf_size = 256;
+	char pwd[buf_size], pwd1[buf_size];
+	getcwd(pwd,buf_size);
+	getcwd(pwd1,buf_size);
+
+	tst_tmpdir();
 	
-	funct = "./genj0";
+	funct = pwd;
+	strcat(funct,"/genj0");
 	child=create_file(funct, 0);
 	waitpid(child,NULL,0);
-
-	funct = "./genj1";
+	
+	funct[strlen(funct)-1] = '1';
 	child=create_file(funct, 0);
 	waitpid(child,NULL,0);
-
-	funct = "./geny0";
+	
+	funct[strlen(funct)-2] = 'y';
+	funct[strlen(funct)-1] = '0';
 	child=create_file(funct, 0);
 	waitpid(child,NULL,0);
-
-	funct = "./geny1";
+	
+	funct[strlen(funct)-1] = '1';
 	child=create_file(funct, 0);
 	waitpid(child,NULL,0);
-
-	funct = "./genlgamma";
+	
+	funct = pwd1;
+	strcat(funct,"/genlgamma");
 	child=create_file(funct, 0);
 	waitpid(child,NULL,0);
 
diff -Nuarp ltp-full-20080331_old/testcases/misc/math/float/bessel/Makefile ltp-full-20080331/testcases/misc/math/float/bessel/Makefile
--- ltp-full-20080331_old/testcases/misc/math/float/bessel/Makefile	2008-03-31 12:55:08.000000000 +0530
+++ ltp-full-20080331/testcases/misc/math/float/bessel/Makefile	2008-04-21 14:31:54.000000000 +0530
@@ -1,5 +1,5 @@
 CFLAGS += -Wall
-LOADLIBES = -lm 
+LOADLIBES += -lm -L../../../../../lib -lltp
 BIN = genj0 genj1 geny0 geny1 genlgamma genbessel
 REF = gamma_inp.ref  gamma_out.ref  gamma_sign.ref  j0_inp.ref  j1_inp.ref  y0_inp.ref  y1_inp.ref
 REF2 = j0_out.ref2  j1_out.ref2  y0_out.ref2  y1_out.ref2
