From: Subrata M. <sub...@in...> - 2007-05-24 07:09:15
|
Taken Care. Regards & Thanks-- Subrata Modak, ==================================== ==================================== "Serge E. Hallyn" <se...@us... > To Sent by: Alexey Dobriyan <ado...@sw...> ltp-list-bounces@ cc lists.sourceforge ltp...@li..., .net de...@op... Subject Re: [LTP] LTP: serge2 hostname 05/23/07 08:19 PM Quoting Alexey Dobriyan (ado...@sw...): > I ran ltp-full-20070430 and utstest.c forgot to restore original > hostname from serge2. ;-) Oh that's just me taking over the world, one workstation at a time. Hopefully this simple obvious silly workaround fixes it? It should also fix 'make no_ltp' which I hadn't realized was broken until I just tried to test the hostname fix... thanks for spotting that. -serge Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libclone: libclone.a Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/libclone: libclone.o diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/Makefile ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/Makefile --- ltp-full-20070430/testcases/kernel/containers/utsname/Makefile 2007-04-26 13:02:51.000000000 +0200 +++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/Makefile 2007-05-23 16:48:26.000000000 +0200 @@ -4,8 +4,9 @@ LDLIBS += -L../../../../lib -L../libclone ../libclone/libclone.a -lltp SRCS = $(wildcard *.c) +NOLTPSRCS = utstest.c TARGETS = $(patsubst %.c,%,$(SRCS)) -NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(SRCS)) +NOLTP_TARGETS = $(patsubst %.c,%_noltp,$(NOLTPSRCS)) %_noltp : %.c $(CC) -g -DNO_LTP -o $@ $< ../libclone/libclone.a diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/runtests_noltp.sh ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/runtests_noltp.sh --- ltp-full-20070430/testcases/kernel/containers/utsname/runtests_noltp.sh 2007-04-26 13:02:51.000000000 +0200 +++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/runtests_noltp.sh 2007-05-23 16:44:32.000000000 +0200 @@ -1,5 +1,6 @@ #!/bin/sh +oldhostname=`hostname` exit_code=0 echo "unshare tests" for i in `seq 1 5`; do @@ -17,4 +18,5 @@ exit_code=$? fi done +hostname "$oldhostname" exit $exit_code diff -ur ltp-full-20070430/testcases/kernel/containers/utsname/runutstest.sh ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/runutstest.sh --- ltp-full-20070430/testcases/kernel/containers/utsname/runutstest.sh 2007-04-26 13:02:51.000000000 +0200 +++ ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname/runutstest.sh 2007-05-23 16:44:37.000000000 +0200 @@ -1,5 +1,6 @@ #!/bin/sh +oldhostname=`hostname` echo "unshare tests" for i in `seq 1 5`; do echo "test $i (unshare)" @@ -10,3 +11,4 @@ echo "test $i (clone)" utstest clone $i done +hostname "$oldhostname" Only in ltp-full-20070430-fixserge2/testcases/kernel/containers/utsname: utstest_noltp ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Ltp-list mailing list Ltp...@li... https://lists.sourceforge.net/lists/listinfo/ltp-list |