aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
Commit message (Collapse)AuthorAge
* unittests: Do gc after reporting error, not beforeZyX2017-12-24
| | | | | Reason: test may contain cleanup at the endwhich is needed for GC to work properly, but is not done if test fails. With collectgarbage() in former position it would crash when collecting garbage.
* unittests: Remove start of trace, not endZyX2017-12-24
|
* unittests: Reduce memory used by vim_str2nr testZyX2017-11-30
|
* Merge branch 'master' into expression-parserZyX2017-11-30
|\
| * unittest: Ignore _Float128 types in ffiJames McCoy2017-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with certain GCC versions, a _Float128 type is present when setting up the ffi for unit tests. ./test/unit/helpers.lua:256: declaration specifier expected near '_Float128' at line 396 /usr/bin/luajit: /usr/share/lua/5.1/busted/runner.lua:99: attempt to concatenate local 'message' (a table value) stack traceback: /usr/share/lua/5.1/busted/runner.lua:99: in function 'fn' /usr/share/lua/5.1/mediator.lua:103: in function 'publish' /usr/share/lua/5.1/busted/modules/helper_loader.lua:21: in function 'helperLoader' /usr/share/lua/5.1/busted/runner.lua:147: in function </usr/share/lua/5.1/busted/runner.lua:11> /usr/bin/busted:3: in main chunk [C]: at 0x004044a0 CMake Error at /<<PKGBUILDDIR>>/cmake/RunTests.cmake:53 (message): Running unit tests failed with error: 1. Since this is being pulled in by a dependency, not directly used by nvim, just ignore the type. Closes #7423
* | unittests: Avoid infinite cycle somewhere because of init failureZyX2017-11-19
| |
* | unittests: Add a way to show some custom messages only when crashedZyX2017-11-11
| |
* | tests: Fix testlint errorsZyX2017-11-06
| |
* | unittests: Free everything and check for memory leaksZyX2017-10-16
| | | | | | Also improves error reporting.
* | viml/parser/expressions: Start creating expressions parserZyX2017-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently supported nodes: - Register as it is one of the simplest value nodes (even numbers are not that simple with that dot handling). - Plus, both unary and binary. - Parenthesis, both nesting and calling. Note regarding unit tests: it stores data for AST in highlighting in strings in place of tables because luassert fails to do a good job at representing big tables. Squashing a bunch of data into a single string simply yields more readable result.
* | unittests: Move some functions into helpers modulesZyX2017-10-08
| |
* | unittests: Add a way to print trace on regular errorZyX2017-09-29
|/
* unittests: Move checking cores to check_child_errZyX2017-04-08
|
* unittests: Force GC, fix GC failures in typval_specZyX2017-04-06
|
* unittests: Make it easier to determine on which _spec line it crashed (#6424)Nikolai Aleksandrovich Pavlov2017-04-02
| | | | | | Benchmarks: Before change: 17.78s user 3.48s system 94% cpu 22.525 total After change: 25.38s user 4.46s system 101% cpu 29.317 total
* unittests: Replace two environment variables with one TRACE_LEVELZyX2017-04-01
|
* unittests: Fix linter errorZyX2017-04-01
|
* unittests: Disable non-C-callsZyX2017-04-01
| | | | | | | Some benchmarks: TRACE_EVERYTHING: 79.45s user 12.68s system 124% cpu 1:13.94 total (default): 30.26s user 5.30s system 89% cpu 39.663 total
* unittests: Add trace description right to the error messageZyX2017-04-01
|
* unittests: Collect tracesZyX2017-04-01
| | | | | | | | | | | Some benchmarks: MAIN_CDEFS + NO_TRACE: 3.81s user 1.65s system 33% cpu 16.140 total MAIN_CDEFS: 73.61s user 10.98s system 154% cpu 54.690 total NO_TRACE: 18.49s user 4.30s system 73% cpu 30.804 total (default): 77.11s user 14.74s system 126% cpu 1:12.79 total
* unittests: Split itp implementation into multiple functionsZyX2017-04-01
|
* unittests: Do not hang when error message is too longZyX2017-04-01
|
* ci: Do not hide ci directory (#6410)Nikolai Aleksandrovich Pavlov2017-03-31
|
* unittests: Add tests for dictionary indexingZyX2017-03-29
|
* unittests: Fix linter errorZyX2017-03-12
|
* unittests: Allow running `ffi.cdef` in the main processZyX2017-03-12
|
* unittests: Move filtering cdefs to main processZyX2017-03-12
|
* unittests: Use more adequate names for some functionsZyX2017-03-12
|
* unittests: Fix linter errorsZyX2017-03-11
|
* unittests: Do not use which, add data to paths.lua.in insteadZyX2017-03-11
|
* unittests: Always close all pipesZyX2017-03-11
|
* unittests: Do not import libnvim or headers in main processZyX2017-03-11
| | | Slows down unit tests much, but gets rid of as much preserved state as possible.
* unittests: Check core dumps in after_each, like in functestsZyX2017-03-11
|
* unittests: Do not run failing test at allZyX2017-03-11
|
* unittests: Fix lint errorsZyX2017-03-11
|
* unittests: Allow failing test to failZyX2017-03-11
|
* unittests: Log syscalls if requestedZyX2017-03-11
|
* unittests: Use own bindings to libc syscall wrappersZyX2017-03-11
|
* unittests: Do not use syscall library: does not work well with cimportZyX2017-03-11
|
* unittests: Try using syscall library instead (ffi-based)ZyX2017-03-11
|
* unittests: Pause garbage collector while executing testsZyX2017-03-11
| | | Temporary (?) workaround for currently failing check_alloc_log tests.
* unittests: Run tests in a separate processZyX2017-03-11
|
* buffer: Hide one of the asserts from lua parserZyX2017-02-25
|
* unittest: Fix linter errorsZyX2017-01-07
|
* unittest: Allow mocking allocator callsZyX2017-01-07
|
* Merge pull request #5826 from ZyX-I/fix-typval_encodeJames McCoy2017-01-06
|\ | | | | Refactor eval/typval_encode.h
| * tests: Add tests for partials dumpingZyX2017-01-03
| | | | | | | | | | Also fixed dumping of partials by encode_vim_to_object and added code which is able to work with partials and dictionaries to test/unit/eval/helpers.lua (mostly copied from #5119, except for partials handling).
* | unittest: Fix linter errorsZyX2017-01-03
| |
* | unittest: Move nil checks to Gcc:preprocessZyX2017-01-03
| |
* | unittest: Record previous defines in another placeZyX2017-01-03
| | | | | | | | Previous commit made preprocess.lua know how its output will be used. This moves state to cimport, making only it know which is cleaner.