Run the following commands:
mkdir build
cd build
cmake ..
make
Then, there are two different ways to run tests:
- Via CTest:
ctest --verbose
- Manually run test executable
./test_list_open_file_descriptors
In case of manual execution test passes successfully, but when it's launched via ctest
command,
it fails with the following error:
1: Expected equality of these values:
1: actual_file_descriptors
1: Which is: { 3, 2, 0, 1 }
1: expected_file_descriptors
1: Which is: { 2, 1, 0 }
1