diff options
author | Cameron Cawley <[email protected]> | 2020-04-25 17:06:12 +0100 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2020-04-26 13:50:49 +1200 |
commit | 616d773441b5355800ce64197a699e6cd6b36172 (patch) | |
tree | 21170a07a38b10b5a6d3d11525eaaeb6be993b04 /test | |
parent | 9caa5b113a2a4faef8bd31894fc2d762b884a5cf (diff) | |
download | cubeb-616d773441b5355800ce64197a699e6cd6b36172.tar.gz cubeb-616d773441b5355800ce64197a699e6cd6b36172.zip |
tests: Fix crash when device enumeration is not supported
Diffstat (limited to 'test')
-rw-r--r-- | test/test_devices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_devices.cpp b/test/test_devices.cpp index 73af3c1..e9b34b3 100644 --- a/test/test_devices.cpp +++ b/test/test_devices.cpp @@ -161,7 +161,7 @@ TEST(cubeb, enumerate_devices) if (r == CUBEB_ERROR_NOT_SUPPORTED) { fprintf(stderr, "Device enumeration not supported" " for this backend, skipping this test.\n"); - r = CUBEB_OK; + return; } ASSERT_EQ(r, CUBEB_OK) << "Error enumerating devices " << r; |