Re: Patch 2.7.6 and deep-directories failed test

2021-01-07 Thread Jeffrey Walton
On Thu, Jan 7, 2021 at 4:57 PM Andreas Grünbacher  wrote:
> ...
> > > That again doesn't reproduce for me (on Fedora 32). Did you try a
> > > fresh checkout of the patch git repository? Are you possibly on a
> > > different version of gnulib (should be
> > > 48e8cffee6a67859119e7df9dc53c8f775daba89)?
> >
> > I believe Gnulib is the tip of master. I did not do anything special
> > with Gnulib. Bootstrap fetched Gnulib for me.
>
> If the bootstrap script did the gnulib checkout for you, you should
> end up with the matching version of gnulib.

OK, Ubuntu was not able to compile master. Fedora 33 was able to compile master.

Fedora 33 patch master also failed deep-directories. Running the test
manually is shown below. This error was present regardless of where I
ran the tests from:

tests$ ./deep-directories
./deep-directories: line 7: /test-lib.sh: No such file or directory
./deep-directories: line 9: require: command not found
./deep-directories: line 10: use_local_patch: command not found
./deep-directories: line 11: use_tmpdir: command not found
./deep-directories: line 26: check: command not found

$ ./tests/deep-directories
./tests/deep-directories: line 7: /test-lib.sh: No such file or directory
./tests/deep-directories: line 9: require: command not found
./tests/deep-directories: line 10: use_local_patch: command not found
./tests/deep-directories: line 11: use_tmpdir: command not found
./tests/deep-directories: line 26: check: command not found

patch-master$ find . -name test-libs.sh
patch-master$

Jeff



Re: Patch 2.7.6 and deep-directories failed test

2021-01-07 Thread Jeffrey Walton
On Thu, Jan 7, 2021 at 4:09 PM Andreas Grünbacher  wrote:
>
> ...
> > If deep-directories can fail, it seems like it should be an XFAIL, not a 
> > FAIL.
>
> The test shouldn't fail, but I also don't think this is a known defect
> in patch 2.7.6, and the bug doesn't trigger here for me, either.

I probably should have mentioned... I am seeing the failure on Ubuntu
18 and Fedora 33.

Jeff



Re: Patch 2.7.6 and deep-directories failed test

2021-01-07 Thread Jeffrey Walton
On Thu, Jan 7, 2021 at 4:09 PM Andreas Grünbacher  wrote:
>
> Am Do., 7. Jan. 2021 um 20:40 Uhr schrieb Jeffrey Walton :
> > Hi Everyone,
> >
> > I'm testing Patch 2.7.6 on Ubuntu 18.05, x86_64 fully patched. Patch
> > is failing one self test:
> >
> > # TOTAL: 44
> > # PASS:  41
> > # SKIP:  0
> > # XFAIL: 2
> > # FAIL:  1
> > # XPASS: 0
> > # ERROR: 0
> >
> > And:
> >
> > $ cat patch-2.7.6/tests/deep-directories.log
> > [26] patch -p1 < ab.diff || echo Status: $? -- FAILED
> > --- expected
> > +++ got
> > @@ -1 +1,2 @@
> > -patching file 1/2/3/4/5/6/7/8/9/foo
> > +/home/jwalton/Build-Scripts/patch-2.7.6/src/patch:  Can't create
> > temporary file 1/2/3/4/5/6/7/8/9/foo.oV1sAfd : Too many open files
> > +Status: 2
> > 1 tests (0 passed, 1 failed)
> > FAIL deep-directories (exit status: 1)
> >
> > If deep-directories can fail, it seems like it should be an XFAIL, not a 
> > FAIL.
>
> The test shouldn't fail, but I also don't think this is a known defect
> in patch 2.7.6, and the bug doesn't trigger here for me, either.
>
> What do you get with the latest code from patch's git repository?

I was able to bootstrap and configure, but make failed:

...
/usr/bin/cc -DHAVE_CONFIG_H -I. -I..
-I/home/jwalton/ok2delete/include -DNDEBUG  -g2 -O2 -march=native
-fPIC -pthread -MT parse-datetime.o -MD -MP -MF
.deps/parse-datetime.Tpo -c -o parse-datetime.o parse-datetime.c
parse-datetime.tab.c:646:10: fatal error: parse-datetime.tab.h: No
such file or directory
compilation terminated.
Makefile:1731: recipe for target 'parse-datetime.o' failed
make[3]: *** [parse-datetime.o] Error 1
make[3]: *** Waiting for unfinished jobs
mv -f .deps/opendirat.Tpo .deps/opendirat.Po
mv -f .deps/gl_linked_list.Tpo .deps/gl_linked_list.Po
mv -f .deps/progname.Tpo .deps/progname.Po
mv -f .deps/hash.Tpo .deps/hash.Po
mv -f .deps/nstrftime.Tpo .deps/nstrftime.Po
make[3]: Leaving directory '/home/jwalton/Build-Scripts/patch-master/lib'
Makefile:1514: recipe for target 'all' failed

Jeff



Patch 2.7.6 and deep-directories failed test

2021-01-07 Thread Jeffrey Walton
Hi Everyone,

I'm testing Patch 2.7.6 on Ubuntu 18.05, x86_64 fully patched. Patch
is failing one self test:

# TOTAL: 44
# PASS:  41
# SKIP:  0
# XFAIL: 2
# FAIL:  1
# XPASS: 0
# ERROR: 0

And:

$ cat patch-2.7.6/tests/deep-directories.log
[26] patch -p1 < ab.diff || echo Status: $? -- FAILED
--- expected
+++ got
@@ -1 +1,2 @@
-patching file 1/2/3/4/5/6/7/8/9/foo
+/home/jwalton/Build-Scripts/patch-2.7.6/src/patch:  Can't create
temporary file 1/2/3/4/5/6/7/8/9/foo.oV1sAfd : Too many open files
+Status: 2
1 tests (0 passed, 1 failed)
FAIL deep-directories (exit status: 1)

If deep-directories can fail, it seems like it should be an XFAIL, not a FAIL.

Jeff
<>
<>


file 1/2/3/4/5/6/7/8/9/foo.oNQK1IS : Too many open files

2020-09-04 Thread Jeffrey Walton
Hi Everyone,

I'm building patch-2.7.6.tar.gz on Ubuntu 18.04 x86_64. 'make check'
is failing one test:

$ cat tests/deep-directories.log
[26] patch -p1 < ab.diff || echo Status: $? -- FAILED
--- expected
+++ got
@@ -1 +1,2 @@
-patching file 1/2/3/4/5/6/7/8/9/foo
+/home/jwalton/Build-Scripts/patch-2.7.6/src/patch:  Can't create
temporary file 1/2/3/4/5/6/7/8/9/foo.oNQK1IS : Too many open files
+Status: 2
1 tests (0 passed, 1 failed)
FAIL deep-directories (exit status: 1)

May be of interest:

$ ulimit -Hn
1048576

I can't tell if this has been reported at
https://savannah.gnu.org/bugs/?group=patch.

Jeff



Memory errors in patch

2020-09-04 Thread Jeffrey Walton
Hi Everyone,

I'm building patch-2.7.6.tar.gz on Ubuntu 18.04 x86_64. 'make check'
is failing multiple tests under Asan:

PASS: asymmetric-hunks
PASS: backup-prefix-suffix
PASS: bad-filenames
PASS: bad-usage
FAIL: concat-git-diff
XFAIL: context-format
FAIL: copy-rename
FAIL: corrupt-patch
PASS: corrupt-reject-files
FAIL: create-delete
PASS: create-directory
FAIL: criss-cross
PASS: crlf-handling
XFAIL: dash-o-append
FAIL: deep-directories
FAIL: empty-files
PASS: false-match
PASS: fifo
FAIL: file-create-modes
FAIL: file-modes
PASS: filename-choice
PASS: git-binary-diff
FAIL: git-cleanup
PASS: garbage
FAIL: global-reject-files
FAIL: inname
PASS: line-numbers
PASS: merge
PASS: mangled-numbers-abort
FAIL: mixed-patch-types
PASS: munged-context-format
PASS: need-filename
FAIL: no-mode-change-git-diff
PASS: no-newline-triggers-assert
PASS: preserve-c-function-names
PASS: preserve-mode-and-timestamp
PASS: quoted-filenames
FAIL: read-only-files
PASS: reject-format
FAIL: remember-backup-files
FAIL: remember-reject-files
PASS: remove-directories
FAIL: symlinks
PASS: unmodified-files

Testsuite summary for GNU patch 2.7.6

# TOTAL: 44
# PASS:  24
# SKIP:  0
# XFAIL: 2
# FAIL:  18
# XPASS: 0
# ERROR: 0