You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by GitBox <gi...@apache.org> on 2021/12/25 13:21:54 UTC

[GitHub] [qpid-dispatch] jiridanek commented on a change in pull request #1469: DISPATCH-1783 add cpp-stub unittest mocking/stubbing tool

jiridanek commented on a change in pull request #1469:
URL: https://github.com/apache/qpid-dispatch/pull/1469#discussion_r775140536



##########
File path: tests/c_unittests/test_terminus.cpp
##########
@@ -73,6 +83,16 @@ TEST_CASE("test_safe_snprintf") {
             CHECK(0 == len);
         }
     }
+    SUBCASE("vsnprintf failure") {
+        Stub stub;
+        stub.set(vsnprintf, vsnprintf_stub::stub);

Review comment:
       lambda does not work here
   
   ```
   /home/jdanek/repos/qpid/qpid-dispatch/tests/c_unittests/test_terminus.cpp:89:92: sorry, unimplemented: converting lambda that uses ‘...’ to function pointer
      89 |         stub.set(vsnprintf, +[](char *str, size_t size, const char *format, ...){return -1;});
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org