Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no ci] try to fix FreeBSD failures #569

Draft
wants to merge 1 commit into
base: vfs-2.40.0
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion t/t5799-gvfs-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,9 @@ test_expect_success 'curl-error: no server' '
<"$OIDS_FILE" >OUT.output 2>OUT.stderr &&

# CURLE_COULDNT_CONNECT 7
grep -q "error: get: (curl:7)" OUT.stderr
# CURLE_OPERATION_TIMEOUT 28
{ grep -q "error: get: (curl:7)" OUT.stderr ||
grep -q "error: get: (curl:28)" OUT.stderr; }
'

test_expect_success 'curl-error: close socket while reading request' '
Expand Down Expand Up @@ -911,6 +913,25 @@ test_expect_success 'curl-error: close socket before writing response' '
# Note: I'm only to do this for 1 of the close_* mayhem events.
#################################################################

This one still fails on FreeBSD:

+ test_when_finished per_test_cleanup
+ test 0 '=' 0
+ test_cleanup=$'{ per_test_cleanup
\t\t} && (exit "$eval_ret"); eval_ret=$?; :'
+ start_gvfs_protocol_server_with_mayhem close_read_1
+ test 1 -lt 1
+ mayhem=''
+ mayhem=' --mayhem=close_read_1'
+ cd '/tmp/cirrus-ci-build/t/trash directory.t5799-gvfs-helper/repo_src'
+ test-gvfs-protocol --verbose '--listen=127.0.0.1' '--port=5799' --reuseaddr '--pid-file=/tmp/cirrus-ci-build/t/trash directory.t5799-gvfs-helper/pid-file.pid' '--mayhem=close_read_1'
+ test -f '/tmp/cirrus-ci-build/t/trash directory.t5799-gvfs-helper/pid-file.pid'
+ return 0
+ git -C '/tmp/cirrus-ci-build/t/trash directory.t5799-gvfs-helper/repo_t1' gvfs-helper '--cache-server=disable' '--remote=origin' get '--max-retries=2'
error: get: (curl:52) Server returned nothing (no headers, no data) [hard_fail]: from GET 035f9b742ebf552ed87f003d4944480bfea6ba99
error: last command exited with $?=2
not ok 17 - successful retry after curl-error: origin get

test_expect_success 'successful retry after curl-error: origin get' '
test_when_finished "per_test_cleanup" &&
start_gvfs_protocol_server_with_mayhem close_read_1 &&
Expand Down