Skip to content

Instantly share code, notes, and snippets.

@wyphan
Created December 23, 2021 20:34
Show Gist options
  • Save wyphan/a3699f9edeba08e299dcfcdf456e84d3 to your computer and use it in GitHub Desktop.
Save wyphan/a3699f9edeba08e299dcfcdf456e84d3 to your computer and use it in GitHub Desktop.
reference-counter ctest log
wyp@wyp-ThinkPad-13:~/work$ gh repo clone sourceryinstitute/reference-counter
Cloning into 'reference-counter'...
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 94 (delta 40), reused 77 (delta 28), pack-reused 0
Receiving objects: 100% (94/94), 15.53 KiB | 5.18 MiB/s, done.
Resolving deltas: 100% (40/40), done.
wyp@wyp-ThinkPad-13:~/work$ cd reference-counter/
wyp@wyp-ThinkPad-13:~/work/reference-counter$ mkdir build
wyp@wyp-ThinkPad-13:~/work/reference-counter$ cd build
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ echo $FC
/usr/bin/gfortran-10
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ echo $CC
/usr/bin/gcc-10
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ echo $CXX
/usr/bin/g++-10
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ cmake ..
--
__________ _____ _________ __
\______ \ _____/ ____\___________ ____ ____ ____ ____ \_ ___ \ ____ __ __ _____/ |_ ___________
| _// __ \ __\/ __ \_ __ \_/ __ \ / \_/ ___\/ __ \ / \ \/ / _ \| | \/ \ __\/ __ \_ __ \
| | \ ___/| | \ ___/| | \/\ ___/| | \ \__\ ___/ \ \___( <_> ) | / | \ | \ ___/| | \/
|____|_ /\___ >__| \___ >__| \___ >___| /\___ >___ > \______ /\____/|____/|___| /__| \___ >__|
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/
Version: 1.0
Build type: Debug
-- The Fortran compiler identification is GNU 10.3.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran-10 - skipped
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wyp/work/reference-counter/build
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ make -j 4
Scanning dependencies of target refcount
[ 12%] Building Fortran object src/CMakeFiles/refcount.dir/hermetic.f90.o
[ 25%] Building Fortran object src/CMakeFiles/refcount.dir/ref_counter.f90.o
[ 37%] Building Fortran object src/CMakeFiles/refcount.dir/universal.f90.o
[ 50%] Linking Fortran static library librefcount.a
[ 50%] Built target refcount
Scanning dependencies of target test-count-leaks
[ 62%] Building Fortran object tests/integration/count-leaks/CMakeFiles/test-count-leaks.dir/faux_cpp_server.f90.o
[ 75%] Building Fortran object tests/integration/count-leaks/CMakeFiles/test-count-leaks.dir/vector.f90.o
/home/wyp/work/reference-counter/tests/integration/count-leaks/vector.f90:52:2:
52 | type(vector) function sum(lhs,rhs)
| 1
Warning: ‘sum’ declared at (1) may shadow the intrinsic of the same name. In order to call the intrinsic, explicit INTRINSIC declarations may be required. [-Wintrinsic-shadow]
/home/wyp/work/reference-counter/tests/integration/count-leaks/vector.f90:62:2:
62 | type(vector) function product(lhs,rhs)
| 1
Warning: ‘product’ declared at (1) may shadow the intrinsic of the same name. In order to call the intrinsic, explicit INTRINSIC declarations may be required. [-Wintrinsic-shadow]
/home/wyp/work/reference-counter/tests/integration/count-leaks/vector.f90:43:35:
43 | integer(c_int) :: new_vector_id
| 1
Warning: Unused variable ‘new_vector_id’ declared at (1) [-Wunused-variable]
[ 87%] Building Fortran object tests/integration/count-leaks/CMakeFiles/test-count-leaks.dir/test-count-leaks.f90.o
[100%] Linking Fortran executable test-count-leaks
[100%] Built target test-count-leaks
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ ctest
Test project /home/wyp/work/reference-counter/build
Start 1: count-leaks
1/1 Test #1: count-leaks ......................***Failed Required regular expression not found. Regex=[Test passed.
] 0.01 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.01 sec
The following tests FAILED:
1 - count-leaks (Failed)
Errors while running CTest
Output from these tests are in: /home/wyp/work/reference-counter/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
wyp@wyp-ThinkPad-13:~/work/reference-counter/build$ ctest --rerun-failed --output-on-failure
Test project /home/wyp/work/reference-counter/build
Start 1: count-leaks
1/1 Test #1: count-leaks ......................***Failed Required regular expression not found. Regex=[Test passed.
] 0.00 sec
initialize vector
assign in ref_counter
assign in ref_counter
called FINAL
release: associated? T
release: count: 3
called FINAL
release: associated? T
release: count: 2
assign in ref_counter
release: associated? T
release: count: 2
deallocated: 0
never_allocated: 999
number of leaks: 1
ERROR STOP Test failed.
Error termination. Backtrace:
#0 0x7fd3a6443d21 in ???
#1 0x7fd3a6444869 in ???
#2 0x7fd3a6445f97 in ???
#3 0x560e1061545f in MAIN__
at /home/wyp/work/reference-counter/tests/integration/count-leaks/test-count-leaks.f90:15
#4 0x560e106154fd in main
at /home/wyp/work/reference-counter/tests/integration/count-leaks/test-count-leaks.f90:3
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.01 sec
The following tests FAILED:
1 - count-leaks (Failed)
Errors while running CTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment