summaryrefslogtreecommitdiff
path: root/libc/conform
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-03-21 20:25:11 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-03-21 20:25:11 +0000
commit11e8a843c1be2bfbacb427ca25282e6979ebb48f (patch)
tree3358bff2de223bb79aa10ff35c4273cb94dc04e8 /libc/conform
parent21983719922788c86799322b2b4cd68830712137 (diff)
downloadeglibc2-11e8a843c1be2bfbacb427ca25282e6979ebb48f.tar.gz
Merge changes between r17530 and r17700 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@17701 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/conform')
-rw-r--r--libc/conform/conformtest.pl11
-rw-r--r--libc/conform/run-conformtest.sh5
2 files changed, 7 insertions, 9 deletions
diff --git a/libc/conform/conformtest.pl b/libc/conform/conformtest.pl
index 6a780203c..83650c245 100644
--- a/libc/conform/conformtest.pl
+++ b/libc/conform/conformtest.pl
@@ -3,11 +3,11 @@
use Getopt::Long;
use POSIX;
+$standard = "XOPEN2K8";
$CC = "gcc";
-
-$standard="XOPEN2K8";
+$tmpdir = "/tmp";
GetOptions ('headers=s' => \@headers, 'standard=s' => \$standard,
- 'flags=s' => \$flags, 'cc=s' => \$CC);
+ 'flags=s' => \$flags, 'cc=s' => \$CC, 'tmpdir=s' => \$tmpdir);
@headers = split(/,/,join(',',@headers));
# List of the headers we are testing.
@@ -84,11 +84,6 @@ while ($#knownproblems >= 0) {
$isknown{pop (@knownproblems)} = 1;
}
-$uid = getuid();
-($pwname,$pwpasswd,$pwuid,$pwgid,
- $pwquota,$pwcomment,$pwgcos,$pwdir,$pwshell,$pwexpire) = getpwuid($uid);
-$tmpdir = "$pwdir";
-
$verbose = 1;
$total = 0;
diff --git a/libc/conform/run-conformtest.sh b/libc/conform/run-conformtest.sh
index d83aa799d..c82fbcb5a 100644
--- a/libc/conform/run-conformtest.sh
+++ b/libc/conform/run-conformtest.sh
@@ -5,6 +5,9 @@ perl="$2"
cc="$3"
includes="$4"
+scratch=${objpfx}scratch
+mkdir -p "$scratch"
+
standards=("ISO" "ISO99" "ISO11" "POSIX" "XPG3" "XPG4" "UNIX98"
"XOPEN2K" "XOPEN2K8" "POSIX2008")
@@ -13,7 +16,7 @@ exitval=0
for s in ${standards[*]}; do
echo -n $s...
e=0
- if ! $perl conformtest.pl --cc="$cc" --flags="$includes" --standard=$s > ${objpfx}conform-$s.out; then
+ if ! $perl conformtest.pl --tmpdir="$scratch" --cc="$cc" --flags="$includes" --standard=$s > ${objpfx}conform-$s.out; then
e=1
fi
printf "\n%s\n" $s >> ${objpfx}run-conformtest.out