Subject: vc-test-git07-other-working-trees failure with current master

From: Paul Eggert <[email-masked]>
Date: Sat, 26 Jul 2025 13:08:20 -0700

I just now got the following failure with "make -j12 check" on current 
master (commit 547525176f23bb543687de1be853da9ad556d60e), when running 
on Ubuntu 25.04 x86-64. I see that recent changes were made to lisp/vc 
so I expect that's related.

Running 32 tests (2025-07-26 12:56:09-0700, selector ‘(not (or (tag 
:expensive-test) (tag :unstable) (tag :nativecomp)))’)
    passed   1/32  vc-test-cvs00-create-repo (0.002621 sec)
Registering (/tmp/vc-testlWDBzL/foo bla)...
Registering (/tmp/vc-testlWDBzL/foo bla)... done
    passed   2/32  vc-test-cvs01-register (0.005654 sec)
vc-state2 nil
vc-state3 CVS unregistered
Registering (foo)...
Registering (foo)... done
vc-state4 added
vc-state5 unsupported
    passed   3/32  vc-test-cvs02-state (0.006105 sec)
vc-working-revision1 nil
vc-working-revision2 nil
vc-working-revision3 nil
Registering (foo)...
Registering (foo)... done
vc-working-revision4 0
vc-working-revision5 unsupported
    passed   4/32  vc-test-cvs03-working-revision (0.005702 sec)
vc-checkout-model1 implicit
vc-checkout-model2 implicit
vc-checkout-model3 implicit
Registering (foo)...
Registering (foo)... done
vc-checkout-model4 implicit
vc-checkout-model5 unsupported
    passed   5/32  vc-test-cvs04-checkout-model (0.005205 sec)
   skipped   6/32  vc-test-cvs05-rename-file (0.000097 sec)
Registering (foo)...
Registering (foo)... done
Checking out /tmp/vc-testFlG5xW/foo...
Checking out /tmp/vc-testFlG5xW/foo...done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in foo...
Checking in foo...done
Checking out /tmp/vc-testFlG5xW/foo...
Checking out /tmp/vc-testFlG5xW/foo...done
Finding changes in /tmp/vc-testFlG5xW/foo...
    passed   7/32  vc-test-cvs06-version-diff (0.745799 sec)
   skipped   8/32  vc-test-cvs07-other-working-trees (0.000085 sec)
    passed   9/32  vc-test-git00-create-repo (0.002417 sec)
Registering (/tmp/vc-testURuCd3/foo bla)...
Registering (/tmp/vc-testURuCd3/foo bla)... done
    passed  10/32  vc-test-git01-register (0.034710 sec)
vc-state2 nil
vc-state3 Git unregistered
Registering (foo)...
Registering (foo)... done
vc-state4 added
vc-state5 Git unregistered
    passed  11/32  vc-test-git02-state (0.014457 sec)
vc-working-revision1 nil
vc-working-revision2 nil
vc-working-revision3 nil
Registering (foo)...
Registering (foo)... done
vc-working-revision4 nil
vc-working-revision5 nil
    passed  12/32  vc-test-git03-working-revision (0.016560 sec)
vc-checkout-model1 implicit
vc-checkout-model2 implicit
vc-checkout-model3 implicit
Registering (foo)...
Registering (foo)... done
vc-checkout-model4 implicit
vc-checkout-model5 implicit
    passed  13/32  vc-test-git04-checkout-model (0.008949 sec)
Registering (foo)...
Registering (foo)... done
    passed  14/32  vc-test-git05-rename-file (0.013171 sec)
Registering (foo)...
Registering (foo)... done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in foo...
Checking in foo...done
Finding changes in /tmp/vc-testoYI4Tv/foo...
    passed  15/32  vc-test-git06-version-diff (0.025248 sec)
Registering (foo)...
Registering (foo)... done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in foo...
Test vc-test-git07-other-working-trees backtrace:
   signal(error ("Failed (status 128): git --no-pager commit -m Testing
   error("Failed (%s): %s" "status 128" "git --no-pager commit -m Testi
   vc-do-command("*vc*" 0 "git" ("foo") "--no-pager" "commit" "-m" "Tes
   apply(vc-do-command "*vc*" 0 "git" ("foo") "--no-pager" ("commit" "-
   vc-git-command(nil 0 ("foo") "commit" "-m" "Testing other working tr
   apply(vc-git-command nil 0 ("foo") ("commit" "-m" "Testing other wor
   vc-git-checkin(("foo") #("Summary: Testing other working trees\n" 0
   apply(vc-git-checkin (("foo") #("Summary: Testing other working tree
   vc-call-backend(Git checkin ("foo") #("Summary: Testing other workin
   #f(compiled-function (backend rev patch-string files comment) #<byte
   #f(compiled-function (files comment) #<bytecode 0x1405c7966fba872f>)
   vc-finish-logentry()
   funcall-interactively(vc-finish-logentry)
   call-interactively(vc-finish-logentry)
   log-edit-done()
   vc-test--other-working-trees(Git)
   #f(lambda () :dynbind (let ((value-90 (gensym "ert-form-evaluation-a
   #f(compiled-function () #<bytecode 0x7d2649fec46bd50>)()
   handler-bind-1(#f(compiled-function () #<bytecode 0x7d2649fec46bd50>
   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
   ert-run-test(#s(ert-test :name vc-test-git07-other-working-trees :do
   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
   ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n
   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) (
   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
   command-line()
   normal-top-level()
Test vc-test-git07-other-working-trees condition:
     (error
      "Failed (status 128): git --no-pager commit -m Testing other 
working trees\n\n --only -- foo")
    FAILED  16/32  vc-test-git07-other-working-trees (0.022482 sec) at 
lisp/vc/vc-tests/vc-tests.el:1
    passed  17/32  vc-test-hg00-create-repo (0.190110 sec)
Registering (/tmp/vc-testLxDt02/foo bla)...
Registering (/tmp/vc-testLxDt02/foo bla)... done
    passed  18/32  vc-test-hg01-register (2.158374 sec)
vc-state2 nil
vc-state3 Hg unregistered
Registering (foo)...
Registering (foo)... done
vc-state4 added
vc-state5 Hg unregistered
    passed  19/32  vc-test-hg02-state (0.737868 sec)
vc-working-revision1 nil
vc-working-revision2 nil
vc-working-revision3 nil
Registering (foo)...
Registering (foo)... done
vc-working-revision4 -1
vc-working-revision5 nil
    passed  20/32  vc-test-hg03-working-revision (0.739917 sec)
vc-checkout-model1 implicit
vc-checkout-model2 implicit
vc-checkout-model3 implicit
Registering (foo)...
Registering (foo)... done
vc-checkout-model4 implicit
vc-checkout-model5 implicit
    passed  21/32  vc-test-hg04-checkout-model (0.402822 sec)
Registering (foo)...
Registering (foo)... done
    passed  22/32  vc-test-hg05-rename-file (0.728403 sec)
Registering (foo)...
Registering (foo)... done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in foo...
Checking in foo...done
Finding changes in /tmp/vc-testafHXmn/foo...
    passed  23/32  vc-test-hg06-version-diff (0.985252 sec)
   skipped  24/32  vc-test-hg07-other-working-trees (0.090941 sec)
    passed  25/32  vc-test-rcs00-create-repo (0.000237 sec)
Registering (/tmp/vc-testcfaANA/foo bla)...
Registering (/tmp/vc-testcfaANA/foo bla)... done
    passed  26/32  vc-test-rcs01-register (0.010584 sec)
vc-state2 nil
vc-state3 RCS unregistered
Registering (foo)...
Registering (foo)... done
vc-state4 up-to-date
vc-state5 RCS unregistered
    passed  27/32  vc-test-rcs02-state (0.004707 sec)
vc-working-revision1 nil
vc-working-revision2 nil
vc-working-revision3 nil
Registering (foo)...
Registering (foo)... done
vc-working-revision4 1.1
vc-working-revision5 nil
    passed  28/32  vc-test-rcs03-working-revision (0.004764 sec)
vc-checkout-model1 locking
vc-checkout-model2 locking
vc-checkout-model3 locking
Registering (foo)...
Registering (foo)... done
vc-checkout-model4 locking
vc-checkout-model5 locking
    passed  29/32  vc-test-rcs04-checkout-model (0.004797 sec)
Registering (foo)...
Registering (foo)... done
    passed  30/32  vc-test-rcs05-rename-file (0.006994 sec)
Registering (foo)...
Registering (foo)... done
Checking out /tmp/vc-testERJ7gd/foo...
Checking out /tmp/vc-testERJ7gd/foo...done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in foo...
Checking in foo...done
Checking out /tmp/vc-testERJ7gd/foo...
Checking out /tmp/vc-testERJ7gd/foo...done
Finding changes in /tmp/vc-testERJ7gd/foo...
    passed  31/32  vc-test-rcs06-version-diff (0.014712 sec)
   skipped  32/32  vc-test-rcs07-other-working-trees (0.000066 sec)

Ran 32 tests, 27 results as expected, 1 unexpected, 4 skipped 
(2025-07-26 12:56:16-0700, 7.097466 sec)

1 unexpected results:
    FAILED  vc-test-git07-other-working-trees

4 skipped results:
   SKIPPED  vc-test-cvs05-rename-file
   SKIPPED  vc-test-cvs07-other-working-trees
   SKIPPED  vc-test-hg07-other-working-trees
   SKIPPED  vc-test-rcs07-other-working-trees

make[3]: *** [Makefile:184: lisp/vc/vc-tests/vc-tests.log] Error 1
make[3]: Leaving directory '/home/eggert/src/gnu/emacs/static-checking/test'
make[2]: [Makefile:348: check-doit] Error 2 (ignored)