]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdlib/tst-setcontext3.sh
support: Expose sbindir as support_sbindir_prefix
[thirdparty/glibc.git] / stdlib / tst-setcontext3.sh
index 6ad67a8aeb9134f2391b21005f75c0b134c6d407..c44b1c664c26c7f59130a5f762e2bbaa693a6c11 100644 (file)
@@ -1,6 +1,6 @@
-#! /bin/bash
+#!/bin/sh
 # Bug 18125: Test the exit functionality of setcontext().
-# Copyright (C) 2015 Free Software Foundation, Inc.
+# Copyright (C) 2015-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -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")
+tempfile=$(mktemp "${objpfx}tst-setcontext3.XXXXXXXXXX")
 
 # We want to run the test program and see if secontext called
 # exit() and wrote out the test file we specified.  If the