Skip to content

Commit

Permalink
Problem: generated C selftest fails on windows
Browse files Browse the repository at this point in the history
Solution: Call zsys_shutdown expicitely on windows platform
See also zeromq/czmq#1751
  • Loading branch information
thalman committed Oct 30, 2017
1 parent 755183c commit 400bca1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zproto_codec_c.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -2307,6 +2307,9 @@ $(class.name)_test (bool verbose)
zsock_destroy (&input);
zsock_destroy (&output);
.endif
#if defined (__WINDOWS__)
zsys_shutdown();
#endif
// @end

printf ("OK\\n");
Expand Down
3 changes: 3 additions & 0 deletions src/zproto_codec_c_v1.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,9 @@ $(class.name)_test (bool verbose)
zconfig_destroy (&config);
zsock_destroy (&input);
zsock_destroy (&output);
#if defined (__WINDOWS__)
zsys_shutdown();
#endif
// @end

printf ("OK\\n");
Expand Down

0 comments on commit 400bca1

Please sign in to comment.