git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug] Test 1450.91 Fails on NonStop
@ 2023-02-15 17:44 rsbecker
  2023-02-15 17:59 ` rsbecker
  2023-02-15 18:02 ` Jeff King
  0 siblings, 2 replies; 12+ messages in thread
From: rsbecker @ 2023-02-15 17:44 UTC (permalink / raw)
  To: 'Git List'

Test 1450.91 fails...

I am not sure what is going on here other than test_must_fail is not
processing the completion code.  This was run on both NonStop platform
variants with sh and bash. The expected file contains what is expected.
actual is empty. There are no very large files anywhere in the trash
directory.

expecting success of 1450.91 'fsck error on gitattributes with excessive
size':
        blob=$(test-tool genzeros $((100 * 1024 * 1024 + 1)) | git
hash-object -w --stdin) &&
        test_when_finished "remove_object $blob" &&
        tree=$(printf "100644 blob %s\t%s\n" $blob .gitattributes | git
mktree) &&
        test_when_finished "remove_object $tree" &&
        cat >expected <<-EOF &&
        error in blob $blob: gitattributesLarge: .gitattributes too large to
parse
        EOF
        test_must_fail git fsck --no-dangling >actual 2>&1 &&
        test_cmp expected actual

+ + git hash-object -w --stdin
+ test-tool genzeros 104857601
blob=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
+ test_when_finished remove_object e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
+ + git mktree
+ printf 100644 blob %s\t%s\n e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
.gitattributes
tree=f8614bda784833ac9ab9e82c4ca296948c6ddd60
+ test_when_finished remove_object f8614bda784833ac9ab9e82c4ca296948c6ddd60
+ cat
+ 1> expected 0<<
error in blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391: gitattributesLarge:
.gitattributes too large to parse
+ test_must_fail git fsck --no-dangling
+ 1> actual 2>& 1
test_must_fail: command succeeded: git fsck --no-dangling
error: last command exited with $?=1
not ok 91 - fsck error on gitattributes with excessive size
#
#               blob=$(test-tool genzeros $((100 * 1024 * 1024 + 1)) | git
hash-object -w --stdin) &&
#               test_when_finished "remove_object $blob" &&
#               tree=$(printf "100644 blob %s\t%s\n" $blob .gitattributes |
git mktree) &&
#               test_when_finished "remove_object $tree" &&
#               cat >expected <<-EOF &&
#               error in blob $blob: gitattributesLarge: .gitattributes too
large to parse
#               EOF
#               test_must_fail git fsck --no-dangling >actual 2>&1 &&
#               test_cmp expected actual
#
1..91
J


--
Brief whoami: NonStop&UNIX developer since approximately
UNIX(421664400)
NonStop(211288444200000000)
-- In real life, I talk too much.




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-02-16 16:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 17:44 [Bug] Test 1450.91 Fails on NonStop rsbecker
2023-02-15 17:59 ` rsbecker
2023-02-15 18:02 ` Jeff King
2023-02-15 18:49   ` rsbecker
2023-02-15 19:10     ` Junio C Hamano
2023-02-15 19:41       ` rsbecker
2023-02-15 19:59       ` Jeff King
2023-02-16  1:45         ` Junio C Hamano
2023-02-16  2:56           ` [PATCH] test-genzeros: avoid raw write(2) Junio C Hamano
2023-02-16  4:34             ` Jeff King
2023-02-16 16:09               ` Junio C Hamano
2023-02-16 16:14                 ` rsbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).