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

pubsub_test failed two cases #66

Open
ausk opened this issue Apr 20, 2023 · 0 comments
Open

pubsub_test failed two cases #66

ausk opened this issue Apr 20, 2023 · 0 comments

Comments

@ausk
Copy link

ausk commented Apr 20, 2023

env

master@win:/home/user/shadesmar-master/build$ uname -a
Linux win 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
master@win:/home/user/shadesmar-master/build$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

run test

./pubsub_test
Increase buffer_size

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pubsub_test is a Catch v2.12.1 host application.
Run with -? for options

-------------------------------------------------------------------------------
single_message
-------------------------------------------------------------------------------
/home/user/shadesmar-master/test/pubsub_test.cpp:39
...............................................................................

/home/user/shadesmar-master/test/pubsub_test.cpp:54: FAILED:
  REQUIRE( answer == message )
with expansion:
  0 == 3

Publishing: 1
Increase buffer_size
Publishing: 2
Increase buffer_size
Publishing: 3
Increase buffer_size
Publishing: 4
Increase buffer_size
Publishing: 5
Increase buffer_size
-------------------------------------------------------------------------------
multiple_messages
-------------------------------------------------------------------------------
/home/user/shadesmar-master/test/pubsub_test.cpp:57
...............................................................................

/home/user/shadesmar-master/test/pubsub_test.cpp:78: FAILED:
  REQUIRE( answers == messages )
with expansion:
  {  } == { 1, 2, 3, 4, 5 }

Publishing: 1
Publishing: 2
Publishing: 3
Publishing: 4
Publishing: 5
Subscribe message: 0
Subscriber: 0
Subscriber: 1
Subscriber: 2
Subscribe message: 1
Subscriber: 0
Subscriber: 1
Subscriber: 2
Subscribe message: 2
Subscriber: 0
Subscriber: 1
Subscriber: 2
Subscribe message: 3
Subscriber: 0
Subscriber: 1
Subscriber: 2
Subscribe message: 4
Subscriber: 0
Subscriber: 1
Subscriber: 2
Publishing: 1
Publishing: 2
Publishing: 3
Publishing: 4
Publishing: 5
Subscriber: 0
Subscribe message: 0
Subscribe message: 1
Subscribe message: 2
Subscribe message: 3
Subscribe message: 4
Subscriber: 1
Subscribe message: 0
Subscribe message: 1
Subscribe message: 2
Subscribe message: 3
Subscribe message: 4
Subscriber: 2
Subscribe message: 0
Subscribe message: 1
Subscribe message: 2
Subscribe message: 3
Subscribe message: 4
Publishing: 1
Publishing: 2
Publishing: 3
Publishing: 4
Publishing: 5
Publishing: 1
Publishing: 2
Publishing: 3
Publishing: 4
Publishing: 5
===============================================================================
test cases: 10 |  8 passed | 2 failed
assertions: 33 | 31 passed | 2 failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant