mirror of
https://github.com/NixOS/nix.git
synced 2025-12-23 09:21:09 +01:00
libutil-tests: Add tests for makeFSSourceAccessor
Should be pretty self-explanatory. We didn't really have unit tests for the filesystem source accessor. Now we do and this will be immensely useful for implementing a unix-only smarter accessor that doesn't suffer from TOCTOU on symlinks.
This commit is contained in:
parent
8cf8a9151a
commit
017fae3f14
6 changed files with 169 additions and 21 deletions
|
|
@ -33,6 +33,9 @@ deps_private += rapidcheck
|
|||
gtest = dependency('gtest', main : true)
|
||||
deps_private += gtest
|
||||
|
||||
gmock = dependency('gmock')
|
||||
deps_private += gmock
|
||||
|
||||
configdata = configuration_data()
|
||||
configdata.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
|
||||
|
|
@ -72,6 +75,7 @@ sources = files(
|
|||
'position.cc',
|
||||
'processes.cc',
|
||||
'sort.cc',
|
||||
'source-accessor.cc',
|
||||
'spawn.cc',
|
||||
'strings.cc',
|
||||
'suggestions.cc',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue