I run a program using Makefile and it is giving me a strange error, although successfully executed. make: *** [test] Error 10
Here is my Makefile code
30
31 test:
32 @ echo
33 @ echo "Testing Electric Fence."
34 @ echo "After the last test, it should print that the test has PASSED."
35 ./eftest
36 ./tstheap 3072
37 @ echo
38 @ echo "Starting test for time-interval-measurement."
39 export EF_ERRTRACK_START=3; export EF_ERRTRACK_END=5; ./time-interval-measurement-test
40 @ echo
41 @ echo "Electric Fence confidence test PASSED."
42 @ echo
On execution:
Time interval measurement test: PASSED
make: *** [test] Error 10
-bash-3.2# make test
To workaround that (in case you cannot modify the (return/exit) behaviour of your binaries) use
.