[Devel] Re: [LTP] LTP: serge2 hostname

Subrata Modak1 subrata.modak at in.ibm.com
Thu May 24 00:08:26 PDT 2007


Taken Care.

Regards & Thanks--
Subrata Modak,
====================================
====================================



                                                                           
             "Serge E. Hallyn"                                             
             <serue at us.ibm.com                                             
             >                                                          To 
             Sent by:                  Alexey Dobriyan <adobriyan at sw.ru>   
             ltp-list-bounces@                                          cc 
             lists.sourceforge         ltp-list at lists.sourceforge.net,     
             .net                      devel at openvz.org                    
                                                                   Subject 
                                       Re: [LTP] LTP: serge2 hostname      
             05/23/07 08:19 PM                                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Quoting Alexey Dobriyan (adobriyan at sw.ru):
> 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-list at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list





More information about the Devel mailing list