google / google/autofdo

Test failed after building autofdo

Open
#151 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
619
Forks
127
PR merge metrics
No merged PRs in 30d

Description

After I use 'ninja' to build autofdo tools without any errors, I use 'ninja test' to run the given tests. Unfortunately two test failed. Anyone know the reason? Is it caused by some warnings in the building process?
```
[0/1] Running tests...
Test project /mnt/ssd/shaj/autofdo/build
Start 1: symbol_map_test
1/9 Test #1: symbol_map_test ..........................***Exception: SegFault 0.13 sec
Start 2: llvm_profile_reader_test
2/9 Test #2: llvm_profile_reader_test ................. Passed 0.01 sec
Start 3: llvm_profile_writer_test
3/9 Test #3: llvm_profile_writer_test ................. Passed 0.26 sec
Start 4: instruction_map_test
4/9 Test #4: instruction_map_test ..................... Passed 0.11 sec
Start 5: profile_symbol_list_test
5/9 Test #5: profile_symbol_list_test ................. Passed 0.00 sec
Start 6: sample_reader_test
6/9 Test #6: sample_reader_test ....................... Passed 0.68 sec
Start 7: llvm_propeller_profile_writer_test
7/9 Test #7: llvm_propeller_profile_writer_test ....... Passed 0.06 sec
Start 8: llvm_propeller_whole_program_info_test
8/9 Test #8: llvm_propeller_whole_program_info_test ...***Exception: SegFault 0.19 sec
Start 9: llvm_propeller_code_layout_test
9/9 Test #9: llvm_propeller_code_layout_test .......... Passed 0.01 sec

78% tests passed, 2 tests failed out of 9

Total Test time (real) = 1.45 sec

The following tests FAILED:
1 - symbol_map_test (SEGFAULT)
8 - llvm_propeller_whole_program_info_test (SEGFAULT)
Errors while running CTest
Output from these tests are in: autofdo/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
FAILED: CMakeFiles/test.util
cd autofdo/build && cmake-3.23.2-linux-x86_64/bin/ctest --force-new-ctest-process
ninja: build stopped: subcommand failed.
```

In autofdo/build/Testing/Temporary/LastTest.log, relevant errors are as follws.
```
1/9 Testing: symbol_map_test
1/9 Test: symbol_map_test

E20221114 10:50:08.467162 46970 llvm_profile_reader.cc:34] Cannot create a SampleProfileReader: No such file or directory
autofdo/symbol_map_test.cc:441: Failure
Expected equality of these values:
foo_cs_map.size()
Which is: 0
5

Test time = 0.13 sec
----------------------------------------------------------
Test Failed.
```

```
8/9 Testing: llvm_propeller_whole_program_info_test
8/9 Test: llvm_propeller_whole_program_info_test

[ERROR:autofdo/perfdata_reader.cc:193] Failed to read file 'autofdo/build/testdata/propeller_clang_labels.binary': No such file or directory

Test time = 0.19 sec
----------------------------------------------------------
Test Failed.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.