- Mar 11, 2021
-
-
Tomáš Pecka authored
In recent Arch Linux builds we encountered some timeouts in tests. Interestingly, the 30s timeouts were encountered not after 30s but right-away. See the ctest output attached at the end of the message. I remembered that Arch switched to glibc=2.33 recently. And by stracing the test process I have noticed that indeed, the select in waitSignalTimeout function timeouted early. It seemed that the timeval struct is the problem and indeed it was. It didn't like setting the 30s timeout as {.tv_sec = 0, .tv_usec = 30 * 1000 * 1000}. However, I can't find in any manpage why this is wrong... It seems to be fixed by limiting tv_usec to be from [0; 1000*1000) range and transfer the whole seconds into the tv_sec field. And the glibc docs [1] says it so explicitely: > When struct timeval values are produced by GNU C Library functions, > the value in this field will always be greater than or equal to zero, > and less than 1,000,000. When struct timeval values are supplied to GNU > C Library functions, the value in this field must be in the same range. [1] https://www.gnu.org/software/libc/manual/html_mono/libc.html#Time-Types ------------------------------------------------------------------------------- aql/AutomatonIteration.aql ------------------------------------------------------------------------------- /builds/algorithms-library-toolkit/infrastructure/cd-release/src/algorithms-library-snapshot/build/tests/AutomatonIteration.cpp:17 ............................................................................... /builds/algorithms-library-toolkit/infrastructure/cd-release/src/algorithms-library-snapshot/tests/testing/TimeoutAqlTest.cpp:206: warning: AqlTest: timeout (30000000 us) reached Trying to execute testfile /builds/algorithms-library-toolkit/infrastructure/cd-release/src/algorithms-library-snapshot/tests/aql/AutomatonIteration.aql Seed was: 1053288110 Child aqlout was: >< Child stdout was: >< Child stderr was: >< /builds/algorithms-library-toolkit/infrastructure/cd-release/src/algorithms-library-snapshot/tests/testing/TimeoutAqlTest.cpp:208: FAILED: =============================================================================== test cases: 1 | 1 failed assertions: 3 | 2 passed | 1 failed
-
- Mar 08, 2021
-
-
Tomáš Pecka authored
... because most developers were copy-pasting the preambule anyway and did not pay any attention to change it. Also, I think that git does better job in managing that.
-
- Jan 31, 2021
-
-
Tomáš Pecka authored
This test generates a random automaton, runs both iteration algorithms on it and then tests that both these automata accept equal language. This is first of the aql integration tests (which support was added in commit d79fe028). This should serve as an example how to write aql integration tests. Also, this is something that should not be in the unit tests (and it was removed in the previous commits).
-
- Jan 30, 2021
-
-
Jan Trávníček authored
-
Although #pragma once is not a standard, compilers nowadays usually support it. We don't have any tricky build system so we should be OK. This also fixes many errors regarding using reserved identifiers (names starting with double underscore).
-
- Jan 15, 2021
-
-
Jan Trávníček authored
removal of an unnecessary recursion, addition of forgotten move, removal of unnecessary const qualifier, change int to -> size_t
-
- Oct 08, 2020
-
-
Jan Trávníček authored
-
- Aug 06, 2020
-
-
Jan Trávníček authored
This reverts commit dcf2c79a.
-
- Aug 04, 2020
-
-
Tomáš Pecka authored
Added support for testing aql files (tests/aql). Removed alib2integrationtests/ in favour of tests/ directory. Sorry for a messy commit. Closes #198.
-
- Aug 03, 2020
-
-
Tomáš Pecka authored
It really makes no sense to have it inside alib2std component. Moved into separate tests/ folder.
-