aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2022-05-06 18:05:27 +0200
committerGitHub <noreply@github.com>2022-05-06 18:05:27 +0200
commit059ae7f6c4b491d728714207c082a03d94c06744 (patch)
tree6d87fe0cf1b62ea28882ab18e476ee694d121099 /.gitignore
parentb470218d9a89bc29116853260a01af6cab450dae (diff)
Add unit tests for libexpr (#5377)
* libexpr: fix builtins.split example The example was previously indicating that multiple whitespaces would be collapsed into a single captured whitespace. That isn't true and was likely a mistake when being documented initially. * Fix segfault on unitilized list when printing value Since lists are just chunks of memory the individual elements in the list might be unitilized when a programming error happens within Nix. In this case the values are null-initialized (at least with Boehm GC) and we can avoid a nullptr deref when printing them. I ran into this issue while ensuring that new expression tests would show the actual value on an assertion failure. This is unlikely to cause any runtime performance regressions as printing values is not really in the hot path (unless the repl is the primary use case). * Add operator<< for ValueTypes * Add libexpr tests This introduces tests for libexpr that evalulate various trivial Nix language expressions and primop invocations that should be good smoke tests wheter or not the implementation is behaving as expected.
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index db363aefd..ba8e95191 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,6 +35,7 @@ perl/Makefile.config
/src/libexpr/parser-tab.hh
/src/libexpr/parser-tab.output
/src/libexpr/nix.tbl
+/src/libexpr/tests/libexpr-tests
# /src/libstore/
*.gen.*