[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
truncate-fail-diag failure on Solaris
From: |
Bruno Haible |
Subject: |
truncate-fail-diag failure on Solaris |
Date: |
Wed, 11 Jun 2008 01:43:47 +0200 |
User-agent: |
KMail/1.5.4 |
Building coreutils 6.12.29-a16be on Solaris 7, with gcc 3.2.2. It fails
like this:
===========================================
1 of 344 tests failed
(42 tests were not run)
See tests/test-suite.log
Please report it to address@hidden
===========================================
=======================================================
GNU coreutils 6.12.29-a16be: tests/test-suite.log
=======================================================
1 of 344 tests failed. (42 tests were not run).
.. contents:: :depth: 2
FAIL: misc/truncate-fail-diag.log (exit: 1)
===========================================
+ truncate --version
truncate (GNU coreutils) 6.12.29-a16be
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by P'adraig Brady.
+ . ./lang-default
++ LC_ALL=C
++ export LC_ALL
++ unset LANGUAGE NLSPATH
++ unset LANG LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/home/haible/coreutils-6.12.29-a16be/tests
+++ this_test_
+++ echo ././misc/truncate-fail-diag
+++ sed 's,.*/,,'
++ this_test=truncate-fail-diag
+++ /home/haible/coreutils-6.12.29-a16be/src/mktemp -d
--tmp=/home/haible/coreutils-6.12.29-a16be/tests
cu-truncate-fail-diag.XXXXXXXXXX
++
t_=/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3
++ trap 'st=$?; cleanup_;
d=/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3;
cd /home/haible/coreutils-6.12.29-a16be/tests && chmod -R u+rwx "$d" && rm
-rf "$d" && exit $st' 0
++ trap '(exit $?); exit $?' 1 2 13 15
++ cd
/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3
++ diff --version
++ grep GNU
+ skip_if_root_
+ uid_is_privileged_
++ id -u
+ my_uid=299
+ return 1
+ fail=0
+ d1=no
+ dir=no/such-dir
+ truncate -s0 no/such-dir
+ cat
+ compare out exp
+ diff -u out exp
+ dir=no/
+ truncate -s0 no/
+ fail=1
+ exit 1
+ exit 1
+ st=1
+ cleanup_
+ :
+ d=/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3
+ cd /home/haible/coreutils-6.12.29-a16be/tests
+ chmod -R u+rwx
/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3
+ rm -rf
/home/haible/coreutils-6.12.29-a16be/tests/cu-truncate-fail-diag.i5vrs22Ea3
+ exit 1
make[4]: *** [test-suite.log] Error 1
The problem is that "truncate -s0 no/" creates a zero-sized file named 'no'
and returns with exit code 0, but the test expects a failure.
Bruno
- truncate-fail-diag failure on Solaris,
Bruno Haible <=
- Re: truncate-fail-diag failure on Solaris, Pádraig Brady, 2008/06/10
- Re: truncate-fail-diag failure on Solaris, Bruno Haible, 2008/06/10
- Re: truncate-fail-diag failure on Solaris, Jim Meyering, 2008/06/11
- Re: truncate-fail-diag failure on Solaris, Bruno Haible, 2008/06/11
- Re: truncate-fail-diag failure on Solaris, Jim Meyering, 2008/06/12
- Re: truncate-fail-diag failure on Solaris, Bruno Haible, 2008/06/12
- Re: truncate-fail-diag failure on Solaris, Jim Meyering, 2008/06/12