summary refs log tree commit diff
path: root/stdlib/tst-setcontext3.sh
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-05-15 16:50:09 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-05-17 08:48:08 -0300
commitb40a4e1a7bf7000018a8d1d1ee2f37f5c63e5a42 (patch)
tree7705116f803774bdae116dc6269fc2c4208df53b /stdlib/tst-setcontext3.sh
parent6c307927ac5c5c3e15774a1c63c9d8c41f3a8678 (diff)
downloadglibc-b40a4e1a7bf7000018a8d1d1ee2f37f5c63e5a42.tar.gz
glibc-b40a4e1a7bf7000018a8d1d1ee2f37f5c63e5a42.tar.xz
glibc-b40a4e1a7bf7000018a8d1d1ee2f37f5c63e5a42.zip
Fix stdlib/tst-setcontext3 with dash [BZ#18418]
This patch remove the non-portable array usage on tst-setcontext3.sh
script.
Diffstat (limited to 'stdlib/tst-setcontext3.sh')
-rw-r--r--stdlib/tst-setcontext3.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/stdlib/tst-setcontext3.sh b/stdlib/tst-setcontext3.sh
index 6ad67a8aeb..7bdca91587 100644
--- a/stdlib/tst-setcontext3.sh
+++ b/stdlib/tst-setcontext3.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /bin/sh
 # Bug 18125: Test the exit functionality of setcontext().
 # Copyright (C) 2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
@@ -29,14 +29,12 @@ test_pre="${test_program_prefix_before_env} ${run_program_env}"
 test="${test_program_prefix_after_env} ${objpfx}tst-setcontext3"
 out=${objpfx}tst-setcontext3.out
 
-tempfiles=()
 cleanup() {
-  rm -f "${tempfiles[@]}"
+  rm -f $tempfile
 }
 trap cleanup 0
 
 tempfile=$(mktemp "tst-setcontext3.XXXXXXXXXX")
-tempfiles+=("$tempfile")
 
 # We want to run the test program and see if secontext called
 # exit() and wrote out the test file we specified.  If the