]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - catgets/test-gencat.sh
elf: Use nocancel pread64() instead of lseek()+read()
[thirdparty/glibc.git] / catgets / test-gencat.sh
index 8557a3f2cbbb8de0d49a0adcb08fa4f199cbd0d2..aa0326e046db26b66d6e78285eaee043e2934927 100755 (executable)
@@ -1,6 +1,6 @@
-#! /bin/sh
+#!/bin/sh
 # Test escape character handling in gencat.
-# Copyright (C) 2000-2012 Free Software Foundation, Inc.
+# Copyright (C) 2000-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
 
 # You should have received a copy of the GNU Lesser General Public
 # License along with the GNU C Library; if not, see
-# <http://www.gnu.org/licenses/>.
+# <https://www.gnu.org/licenses/>.
 
 set -e
 
 common_objpfx=$1
-run_program_cmd=$2
+test_program_cmd_before_env=$2
+run_program_env=$3
+test_program_cmd_after_env=$4
 
 # Run the test program.
-LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}iconvdata \
-NLSPATH=${common_objpfx}catgets/%N.%c.cat LC_ALL=ja_JP.SJIS \
-  ${run_program_cmd} \
+${test_program_cmd_before_env} \
+  ${run_program_env} \
+  NLSPATH=${common_objpfx}catgets/%N.%c.cat LC_ALL=ja_JP.SJIS \
+  ${test_program_cmd_after_env} \
     > ${common_objpfx}catgets/test-gencat.out
 
 # Compare with the expected result.