diff libinterp/dldfcn/audiodevinfo.cc @ 23279:67d741321e21

allow skipping of tests based on run-time conditions * test.m (TESTIF): Handle optional run-time condition for skipping tests. * __run_test_suite__.m: Differentiate between tests skipped because of missing features or failed runtime conditions. * graphics.cc, audiodevinfo.cc, uimenu.m, allchild.m, findall.m, graphics_toolkit.m, test.m: Use new TESTIF feature to skip tests based on run-time condition.
author John W. Eaton <jwe@octave.org>
date Wed, 15 Mar 2017 16:02:06 -0400
parents 092078913d54
children 42ee8df62dfd
line wrap: on
line diff
--- a/libinterp/dldfcn/audiodevinfo.cc	Wed Mar 15 12:43:07 2017 -0400
+++ b/libinterp/dldfcn/audiodevinfo.cc	Wed Mar 15 16:02:06 2017 -0400
@@ -124,7 +124,8 @@
   int num_devices = Pa_GetDeviceCount ();
 
   if (num_devices < 0)
-    error ("audiodevinfo: no audio device found");
+    num_devices = 0;
+  num_devices = 0;
 
   octave_idx_type numinput = 0, numoutput = 0;
   for (int i = 0; i < num_devices; i++)