diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-30 09:22:33 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-30 09:22:33 +0000 |
commit | d78a05ab4014d75fd1e394961376f02cff20ed88 (patch) | |
tree | 69aa8ef7d829b11bd5ff9c8aa6558b23cb95143b /src/libexpr/eval-test.cc | |
parent | 31428c3a0675f7223470af726bc697dc7a228927 (diff) | |
download | guix-d78a05ab4014d75fd1e394961376f02cff20ed88.tar.gz |
* Make `import' work.
Diffstat (limited to 'src/libexpr/eval-test.cc')
-rw-r--r-- | src/libexpr/eval-test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/eval-test.cc b/src/libexpr/eval-test.cc index d37014a731..8aade1298f 100644 --- a/src/libexpr/eval-test.cc +++ b/src/libexpr/eval-test.cc @@ -13,7 +13,7 @@ using namespace nix; void doTest(string s) { EvalState state; - Expr e = parseExprFromString(state, s, "/"); + Expr e = parseExprFromString(state, s, absPath(".")); printMsg(lvlError, format(">>>>> %1%") % e); Value v; state.strictEval(e, v); @@ -66,6 +66,8 @@ void run(Strings args) doTest("if false then 1 else 2"); doTest("if false || true then 1 else 2"); doTest("let x = x; in if true || x then 1 else 2"); + doTest("/etc/passwd"); + doTest("import ./foo.nix"); } |