diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-05-23 16:38:53 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-05-25 11:35:11 +0000 |
commit | ef2d075b357464d3d6ae1c963b1a419bd3121241 (patch) | |
tree | 23996bc79ae8aa992e64c3a3da4d1f6043e53eab /tests | |
parent | 11bbbe191cb7cee6ae32f624fb943859c6b5d350 (diff) |
Fix some logic errors in QWindowsAudioDeviceInfo
With these changes, the qaudiodeviceinfo auto test passes
on Windows.
Change-Id: Ic139d0213a5ec797dfabd3bfde6b4d00decd0cc1
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/integration/qaudiodeviceinfo/tst_qaudiodeviceinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/integration/qaudiodeviceinfo/tst_qaudiodeviceinfo.cpp b/tests/auto/integration/qaudiodeviceinfo/tst_qaudiodeviceinfo.cpp index fb3ed6f6f..ee85d7a63 100644 --- a/tests/auto/integration/qaudiodeviceinfo/tst_qaudiodeviceinfo.cpp +++ b/tests/auto/integration/qaudiodeviceinfo/tst_qaudiodeviceinfo.cpp @@ -99,7 +99,7 @@ void tst_QAudioDeviceInfo::checkAvailableDefaultOutput() void tst_QAudioDeviceInfo::channels() { QVERIFY(device->minimumChannelCount() > 0); - QVERIFY(device->maximumChannelCount() > device->minimumChannelCount()); + QVERIFY(device->maximumChannelCount() >= device->minimumChannelCount()); } void tst_QAudioDeviceInfo::sampleFormat() |