@@ -470,17 +470,21 @@ t.test('still do not install optional deps with mismatched platform specificatio
470
470
t . test ( 'fail to install deps with mismatched platform specifications' , t =>
471
471
t . rejects ( printReified ( fixture ( t , 'platform-specification' ) ) , { code : 'EBADPLATFORM' } ) )
472
472
473
- t . test ( 'success to install optional deps with matched platform specifications with os and cpu options' , t =>
473
+ t . test ( 'success to install optional deps with matched platform specifications with os and cpu and libc options' , t =>
474
474
t . resolveMatchSnapshot ( printReified (
475
- fixture ( t , 'optional-platform-specification' ) , { os : 'not-your-os' , cpu : 'not-your-cpu' } ) ) )
475
+ fixture ( t , 'optional-platform-specification' ) , { os : 'not-your-os' , cpu : 'not-your-cpu' , libc : 'not-your-libc' } ) ) )
476
476
477
- t . test ( 'fail to install optional deps with matched os and mismatched cpu with os and cpu options' , t =>
477
+ t . test ( 'fail to install optional deps with matched os and mismatched cpu with os and cpu and libc options' , t =>
478
478
t . resolveMatchSnapshot ( printReified (
479
- fixture ( t , 'optional-platform-specification' ) , { os : 'not-your-os' , cpu : 'another-cpu' } ) ) )
479
+ fixture ( t , 'optional-platform-specification' ) , { os : 'not-your-os' , cpu : 'another-cpu' , libc : 'not-your-libc' } ) ) )
480
480
481
- t . test ( 'fail to install optional deps with mismatched os and matched cpu with os and cpu options' , t =>
481
+ t . test ( 'fail to install optional deps with mismatched os and matched cpu with os and cpu and libc options' , t =>
482
482
t . resolveMatchSnapshot ( printReified (
483
- fixture ( t , 'optional-platform-specification' ) , { os : 'another-os' , cpu : 'not-your-cpu' } ) ) )
483
+ fixture ( t , 'optional-platform-specification' ) , { os : 'another-os' , cpu : 'not-your-cpu' , libc : 'not-your-libc' } ) ) )
484
+
485
+ t . test ( 'fail to install optional deps with matched os and matched cpu and mismatched libc with os and cpu and libc options' , t =>
486
+ t . resolveMatchSnapshot ( printReified (
487
+ fixture ( t , 'optional-platform-specification' ) , { os : 'another-os' , cpu : 'not-your-cpu' , libc : 'not-your-libc' } ) ) )
484
488
485
489
t . test ( 'dry run, do not get anything wet' , async t => {
486
490
const cases = [
0 commit comments