freebsd / atf

Libraries to write tests in C, C++ and shell
Other
127 stars 44 forks source link

check_test:build_cpp: test failure #61

Open fel1x-developer opened 4 months ago

fel1x-developer commented 4 months ago
 $ make installcheck
...
atf-c/check_test:build_cpp  ->  failed: 2 checks failed; see output for more details  [0.004s]
atf-c++/check_test:build_cpp  ->  failed: atf-c/utils.c:320: (fd = open(file, O_RDONLY | O_CLOEXEC)) != -1 not met  [0.004s]
Standard output:
Looking for '-o.*test.p' in '> -o test.p test.c'
Looking for 'test.c' in '> -o test.p test.c'

Standard error:
Files left in work directory after failure: result, stderr, stdout, test.c
===> atf-c/check_test:build_cpp
Result:     failed: atf-c/utils.c:320: (fd = open(file, O_RDONLY | O_CLOEXEC)) != -1 not met
Start time: 2024-03-11T17:06:21.610078Z
End time:   2024-03-11T17:06:21.613030Z
Duration:   0.003s
Standard output:
Looking for '-o.*test.p' in '> -o test.p test.c'
Looking for 'test.c' in '> -o test.p test.c'

Standard error:
Files left in work directory after failure: result, stderr, stdout, test.c
===> Failed tests
atf-c++/check_test:build_cpp  ->  failed: atf-c/utils.c:320: (fd = open(file, O_RDONLY | O_CLOEXEC)) != -1 not met  [0.004s]
atf-c/check_test:build_cpp  ->  failed: atf-c/utils.c:320: (fd = open(file, O_RDONLY | O_CLOEXEC)) != -1 not met  [0.003s]
===> Summary
Results read from /home/minsoochoo/.kyua/store/results.home_minsoochoo_local_tests_atf.20240311-170621-536675.db
Test cases: 383 total, 0 skipped, 0 expected failures, 0 broken, 2 failed
Start time: 2024-03-11T17:06:21.544862Z
End time:   2024-03-11T17:06:33.056275Z
Total time: 10.743s
*** Error code 1
ngie-eign commented 4 months ago

I feel like one or more utilities are not being required in require.progs…

fel1x-developer commented 4 months ago
7|Files left in work directory after failure: result, stderr, stdout, test.c
217|Executing command [ /home/minsoochoo/local/tests/atf/test-programs/c_helpers -r result expect_pass_and_pass ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/c_helpers -r result expect_pass_but_fail_requirement ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/c_helpers -r result expect_pass_but_fail_check ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/cpp_helpers -r result expect_pass_and_pass ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/cpp_helpers -r result expect_pass_but_fail_requirement ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/cpp_helpers -r result expect_pass_but_fail_check ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/sh_helpers -r result expect_pass_and_pass ]
Executing command [ cat result ]
Executing command [ /home/minsoochoo/local/tests/atf/test-programs/sh_helpers -r result expect_pass_but_fail_requirement ]
Executing command [ cat result ]
fel1x-developer commented 3 months ago

This happens when the system does not have CPP environmnetal variable set. Can you please fix this?