-#! /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
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