]> granicus.if.org Git - libevent/commitdiff
test: cleanup stalled socket after running http/unix_sock
authorAzat Khuzhin <azat@libevent.org>
Sat, 18 Sep 2021 22:47:42 +0000 (01:47 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 18 Sep 2021 22:47:42 +0000 (01:47 +0300)
Otherwise it breaks upload-artifacts:

    Run actions/upload-artifact@v1
    Uploading artifact 'ubuntu-18.04-cmake-NONE-build' from '/home/runner/work/libevent/libevent/build' for run #346
    Uploading 1095 files
    File error 'No such device or address' when uploading file '/home/runner/work/libevent/libevent/build/foo'.
    ...
    Error: No such device or address
    Error: Exit code 1 returned from process: file name '/home/runner/runners/2.282.1/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.

test/regress_http.c

index b612ff979ba1a5bb4449f5d108a2acaa9c44dd41..8c019010108edfeb3905c8cfce4059db826c7312 100644 (file)
@@ -2308,6 +2308,7 @@ static void http_unix_socket_test(void *arg)
                evhttp_free(myhttp);
        if (uri)
                evhttp_uri_free(uri);
+       unlink("foo");
 }
 #endif