From bd20920488ab72fad232ed34d539decb638c8838 Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Mon, 17 Oct 2016 15:33:17 +0000
Subject: [PATCH] Update libc tests

Former-commit-id: 5757bb40f8e26373e8512ccce872b93b34cc4745
---
 tools/selective_cfi/tests/test_libc.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tools/selective_cfi/tests/test_libc.sh b/tools/selective_cfi/tests/test_libc.sh
index bd043f6e2..5d186acf4 100755
--- a/tools/selective_cfi/tests/test_libc.sh
+++ b/tools/selective_cfi/tests/test_libc.sh
@@ -1,4 +1,6 @@
-#!/bin/bash 
+#!/bin/bash
+
+libcpath=""
 
 do_cfi()
 {
@@ -19,13 +21,13 @@ do_coloring_cfi()
 
 get_correct()
 {
-	cp libfoo.so.orig libfoo.so
-	./foo.exe > correct
+	echo "get_correct()"
+	cp libc.so.6.orig libc.so.6
+	LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./libc_driver.exe > correct
 }
 
 test()
 {
-	
 	cp $2 libfoo.so  
 	./$1 > out 
 
@@ -59,7 +61,7 @@ clean()
 {
 	rm out
 	rm correct
-	rm -Rf *.orig *libc*.exe *libc.*cfi
+	rm -Rf *.orig *libc*.exe *libc.*cfi *peasoup_exec*
 }
 
 report ()
-- 
GitLab