Return-Path: From: Song Cai Date: Fri, 13 Oct 2017 18:07:50 +0800 Message-ID: <20171013100750.3464-4-cais.fnst@cn.fujitsu.com> In-Reply-To: <20171013100750.3464-1-cais.fnst@cn.fujitsu.com> References: <20171013100750.3464-1-cais.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 17/18] solve glib test program failed problem List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org * TEST-11 dump problem Avoid the following warning by adding macro `#define _XOPEN_SOURCE`, the warning cause dump ```plain warning: implicit declaration of function 'crypt' [-Wimplicit-function-declaration] ``` * TEST-14 version mismatch problem The original specified the version 2.23. Avoid versoin confict by checking link file's realpath Signed-off-by: Song Cai --- engine/tests/Functional.glibc/fuego_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/tests/Functional.glibc/fuego_test.sh b/engine/tests/Functional.glibc/fuego_test.sh index 6e3213c..7f573b7 100755 --- a/engine/tests/Functional.glibc/fuego_test.sh +++ b/engine/tests/Functional.glibc/fuego_test.sh @@ -1,6 +1,8 @@ tarball=glibc_tests.tar.gz function test_build { + sed -i -e '1i\#define _XOPEN_SOURCE' libnss_test/libnss_compat.c + CC="$CC" AR="$AR" RANLIB="$RANLIB" make all @@ -35,7 +37,7 @@ EOF if ./nss localhost; then echo 'TEST-13 OK'; else echo 'TEST-13 FAIL'; fi; cp nsswitch.conf.bk /etc/nsswitch.conf; - if [ -f /lib/libBrokenLocale-2.23.so ]; + if [ -f $(realpath /lib/libBrokenLocale.so.1) ] then echo 'TEST-14 OK'; else echo 'TEST-14 FAIL'; fi; " > run-tests.sh -- 2.9.3.windows.3