@@ -73,7 +73,6 @@ TEST_F(nix_api_expr_test, nix_expr_eval_add_numbers)
73
73
74
74
TEST_F (nix_api_expr_test, nix_expr_eval_drv)
75
75
{
76
- #if 0
77
76
auto expr = R"( derivation { name = "myname"; builder = "mybuilder"; system = "mysystem"; })" ;
78
77
nix_expr_eval_from_string (nullptr , state, expr, " ." , value);
79
78
ASSERT_EQ (NIX_TYPE_ATTRS, nix_get_type (nullptr , value));
@@ -99,7 +98,6 @@ TEST_F(nix_api_expr_test, nix_expr_eval_drv)
99
98
100
99
nix_gc_decref (nullptr , valueResult);
101
100
nix_state_free (stateResult);
102
- #endif
103
101
}
104
102
105
103
TEST_F (nix_api_expr_test, nix_build_drv)
@@ -137,11 +135,9 @@ TEST_F(nix_api_expr_test, nix_build_drv)
137
135
StorePath * outStorePath = nix_store_parse_path (ctx, store, outPath.c_str ());
138
136
ASSERT_EQ (false , nix_store_is_valid_path (ctx, store, outStorePath));
139
137
140
- #if 0
141
138
nix_store_realise (ctx, store, drvStorePath, nullptr , nullptr );
142
139
auto is_valid_path = nix_store_is_valid_path (ctx, store, outStorePath);
143
140
ASSERT_EQ (true , is_valid_path);
144
- #endif
145
141
146
142
// Clean up
147
143
nix_store_path_free (drvStorePath);
@@ -170,17 +166,14 @@ TEST_F(nix_api_expr_test, nix_expr_realise_context_bad_build)
170
166
)" ;
171
167
nix_expr_eval_from_string (ctx, state, expr, " ." , value);
172
168
assert_ctx_ok ();
173
- #if 0
174
169
auto r = nix_string_realise (ctx, state, value, false );
175
170
ASSERT_EQ (nullptr , r);
176
171
ASSERT_EQ (ctx->last_err_code , NIX_ERR_NIX_ERROR);
177
172
ASSERT_THAT (ctx->last_err , testing::Optional (testing::HasSubstr (" failed with exit code 1" )));
178
- #endif
179
173
}
180
174
181
175
TEST_F (nix_api_expr_test, nix_expr_realise_context)
182
176
{
183
- #if 0
184
177
// TODO (ca-derivations): add a content-addressing derivation output, which produces a placeholder
185
178
auto expr = R"(
186
179
''
@@ -235,7 +228,6 @@ TEST_F(nix_api_expr_test, nix_expr_realise_context)
235
228
EXPECT_THAT (names[2 ], testing::StrEq (" not-actually-built-yet.drv" ));
236
229
237
230
nix_realised_string_free (r);
238
- #endif
239
231
}
240
232
241
233
const char * SAMPLE_USER_DATA = " whatever" ;
0 commit comments