1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 21:21:00 +01:00

Merge pull request #14668 from NixOS/fix-i686-expr-tests

libexpr: Fix tests on 32 bit systems
This commit is contained in:
John Ericson 2025-11-28 02:33:29 +00:00 committed by GitHub
commit 048a58d331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View file

@ -58,7 +58,7 @@ static nix::Value & check_value_out(nix_value * value)
return v; return v;
} }
static inline nix_value * new_nix_value(nix::Value * v, nix::EvalMemory & mem) static nix_value * new_nix_value(nix::Value * v, nix::EvalMemory & mem)
{ {
nix_value * ret = new (mem.allocBytes(sizeof(nix_value))) nix_value{ nix_value * ret = new (mem.allocBytes(sizeof(nix_value))) nix_value{
.value = v, .value = v,

View file

@ -14,12 +14,4 @@
namespace nixC { namespace nixC {
TEST_F(nix_api_expr_test, as_nix_value_ptr)
{
// nix_alloc_value casts nix::Value to nix_value
// It should be obvious from the decl that that works, but if it doesn't,
// the whole implementation would be utterly broken.
ASSERT_EQ(sizeof(nix::Value), sizeof(nix_value));
}
} // namespace nixC } // namespace nixC