diff options
author | Tom Cherry <tomcherry@google.com> | 2017-04-19 16:18:50 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2017-04-21 18:27:42 -0700 |
commit | ad54d094cde838d19034b8325705b22dca0e9af0 (patch) | |
tree | cd736b9b8b30b8350d100b9d237cd47a90614041 /init/builtins.cpp | |
parent | 30a6f276fd8850b0a78689d7bff3cb06a18cb286 (diff) |
init: create init_tests.cpp
Start a init_tests.cpp file for end-to-end tests that parse small init script
segments and verify that they act as expected.
The first tests ensure that the execution order of event triggers
happens appropriately.
Test: Boot bullhead, run unit tests
Change-Id: Ic446c02605ab796fd41e0596ce1fd381aee80ce0
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index 87d4e81af..1d98ef13d 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -838,7 +838,7 @@ static int do_init_user0(const std::vector<std::string>& args) { return e4crypt_do_init_user0(); } -BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const { +const BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const { constexpr std::size_t kMax = std::numeric_limits<std::size_t>::max(); // clang-format off static const Map builtin_functions = { |