]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix stdlib/tst-setcontext3 with dash [BZ#18418]
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 15 May 2015 19:50:09 +0000 (16:50 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 17 May 2015 11:48:08 +0000 (08:48 -0300)
This patch remove the non-portable array usage on tst-setcontext3.sh
script.

ChangeLog
NEWS
stdlib/tst-setcontext3.sh

index 89a8df53ccbb811a2f945d8fc76651552d34095c..4a2878a25a22cf4c58cc2ed8855ee1a5e3542897 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #18418]
+       * stdlib/tst-setcontext3.sh: Remove non-portable array use.
+
 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #16352]
diff --git a/NEWS b/NEWS
index 77f6f5a1fbca925a22ca3197af32fa000e97ddb3..bfeb3a78f6161b83eed6e844e119c05804afa718 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,7 +18,7 @@ Version 2.22
   18039, 18042, 18043, 18046, 18047, 18068, 18080, 18093, 18100, 18104,
   18110, 18111, 18125, 18128, 18138, 18185, 18196, 18197, 18206, 18210,
   18211, 18217, 18220, 18221, 18247, 18287, 18319, 18333, 18346, 18397,
-  18409.
+  18409, 18418.
 
 * Cache information can be queried via sysconf() function on s390 e.g. with
   _SC_LEVEL1_ICACHE_SIZE as argument.
index 6ad67a8aeb9134f2391b21005f75c0b134c6d407..7bdca91587a4d853b4c7d3568b5c4857862a364a 100644 (file)
@@ -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