[Fuego] [PATCH 17/18] solve glib test program failed problem

Song Cai cais.fnst at cn.fujitsu.com
Fri Oct 13 10:07:50 UTC 2017


* 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 <cais.fnst at cn.fujitsu.com>
---
 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





More information about the Fuego mailing list