1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 06:11:46 +02:00

Merge pull request #12831 from NixOS/mergify/bp/2.28-maintenance/pr-12619

rapidcheck: change to working arbitrary instances (backport #12619)
This commit is contained in:
mergify[bot] 2025-03-31 21:05:33 +00:00 committed by GitHub
commit d6359ebac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 103 additions and 64 deletions

View file

@ -79,12 +79,19 @@ TEST_F(DerivedPathTest, built_built_xp) {
#ifndef COVERAGE
/* TODO: Disabled due to the following error:
path '00000000000000000000000000000000-0^0' is not a valid store path:
name '0^0' contains illegal character '^'
*/
RC_GTEST_FIXTURE_PROP(
DerivedPathTest,
prop_legacy_round_rip,
DISABLED_prop_legacy_round_rip,
(const DerivedPath & o))
{
RC_ASSERT(o == DerivedPath::parseLegacy(*store, o.to_string_legacy(*store)));
ExperimentalFeatureSettings xpSettings;
xpSettings.set("experimental-features", "dynamic-derivations");
RC_ASSERT(o == DerivedPath::parseLegacy(*store, o.to_string_legacy(*store), xpSettings));
}
RC_GTEST_FIXTURE_PROP(
@ -92,7 +99,9 @@ RC_GTEST_FIXTURE_PROP(
prop_round_rip,
(const DerivedPath & o))
{
RC_ASSERT(o == DerivedPath::parse(*store, o.to_string(*store)));
ExperimentalFeatureSettings xpSettings;
xpSettings.set("experimental-features", "dynamic-derivations");
RC_ASSERT(o == DerivedPath::parse(*store, o.to_string(*store), xpSettings));
}
#endif