mozilla / cubeb

Cross platform audio library
ISC License
439 stars 124 forks source link

test_duplex fails when running with cubeb-pulse-rs #700

Open ChunMinChang opened 2 years ago

ChunMinChang commented 2 years ago
[ RUN      ] cubeb.duplex_collection_change_no_unregister

[WARNING] /home/cm/Work/cubeb/googletest/src/gtest-death-test.cc:789:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test couldn't detect the number of threads.
/home/cm/Work/cubeb/test/test_duplex.cpp:202: Failure
Death test: cubeb_destroy(p)
    Result: failed to die.
 Error msg:
[  DEATH   ] 
[  FAILED  ] cubeb.duplex_collection_change_no_unregister (112 ms)

https://users.rust-lang.org/t/how-to-write-a-death-test-in-gtest-for-rust-apis/23575/6

It seems we cannot use death test for rust API