Skip to content

Instantly share code, notes, and snippets.

@ku1ik
Created May 15, 2012 19:17
Show Gist options
  • Save ku1ik/2704327 to your computer and use it in GitHub Desktop.
Save ku1ik/2704327 to your computer and use it in GitHub Desktop.
arcins-Mac:stderred kill$ make
rm -rf build lib lib64
mkdir build && cd build && cmake ../src && make
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_GLIBC
-- Performing Test HAVE_GLIBC - Failed
-- Looking for include files HAVE_ERROR_H
-- Looking for include files HAVE_ERROR_H - not found.
-- Looking for include files HAVE_ERR_H
-- Looking for include files HAVE_ERR_H - found
-- Looking for fwrite_unlocked
-- Looking for fwrite_unlocked - not found
-- Looking for error
-- Looking for error - not found
-- Looking for error_at_line
-- Looking for error_at_line - not found
-- Looking for err
-- Looking for err - found
-- Looking for verr
-- Looking for verr - found
-- Looking for errc
-- Looking for errc - found
-- Looking for verrc
-- Looking for verrc - found
-- Looking for errx
-- Looking for errx - found
-- Looking for verrx
-- Looking for verrx - found
-- Looking for warn
-- Looking for warn - found
-- Looking for vwarn
-- Looking for vwarn - found
-- Looking for warnc
-- Looking for warnc - found
-- Looking for vwarnc
-- Looking for vwarnc - found
-- Looking for warnx
-- Looking for warnx - found
-- Looking for vwarnx
-- Looking for vwarnx - found
-- Looking for err_set_file
-- Looking for err_set_file - found
-- Looking for getprogname
-- Looking for getprogname - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kill/stderred/build
Scanning dependencies of target polyfill
[ 14%] Building C object CMakeFiles/polyfill.dir/polyfill.c.o
Linking C shared library libpolyfill.dylib
[ 14%] Built target polyfill
Scanning dependencies of target stderred
[ 28%] Building C object CMakeFiles/stderred.dir/stderred.c.o
[ 42%] Building C object CMakeFiles/stderred.dir/polyfill.c.o
Linking C shared library libstderred.dylib
[ 42%] Built target stderred
Scanning dependencies of target test_runner
[ 57%] Building C object CMakeFiles/test_runner.dir/test.c.o
Linking C executable test_runner
[ 57%] Built target test_runner
Scanning dependencies of target test_stderred
[ 71%] Building C object CMakeFiles/test_stderred.dir/mocks.c.o
[ 85%] Building C object CMakeFiles/test_stderred.dir/stderred.c.o
[100%] Building C object CMakeFiles/test_stderred.dir/polyfill.c.o
Linking C shared library libtest_stderred.dylib
[100%] Built target test_stderred
cd build && make test
Running tests...
Test project /Users/kill/stderred/build
Start 1: printf
1/28 Test #1: printf ........................... Passed 0.11 sec
Start 2: write
2/28 Test #2: write ............................ Passed 0.09 sec
Start 3: fwrite
3/28 Test #3: fwrite ........................... Passed 0.10 sec
Start 4: fwrite_unlocked
4/28 Test #4: fwrite_unlocked .................. Passed 0.09 sec
Start 5: fputc
5/28 Test #5: fputc ............................ Passed 0.11 sec
Start 6: fputc_unlocked
6/28 Test #6: fputc_unlocked ................... Passed 0.10 sec
Start 7: fputs
7/28 Test #7: fputs ............................ Passed 0.09 sec
Start 8: fputs_unlocked
8/28 Test #8: fputs_unlocked ................... Passed 0.10 sec
Start 9: fprintf
9/28 Test #9: fprintf .......................... Passed 0.10 sec
Start 10: fprintf_unlocked
10/28 Test #10: fprintf_unlocked ................. Passed 0.10 sec
Start 11: vfprintf
11/28 Test #11: vfprintf ......................... Passed 0.09 sec
Start 12: perror
12/28 Test #12: perror ........................... Passed 0.08 sec
Start 13: error
13/28 Test #13: error ............................ Passed 0.10 sec
Start 14: error_at_line
14/28 Test #14: error_at_line .................... Passed 0.10 sec
Start 15: err
15/28 Test #15: err ..............................***Failed Required regular expression not found.Regex=[>test_runner: 2 err: [^
]+
<
] 0.10 sec
Start 16: verr
16/28 Test #16: verr .............................***Failed Required regular expression not found.Regex=[>test_runner: 2 verr: [^
]+
<
] 0.10 sec
Start 17: errc
17/28 Test #17: errc .............................***Failed Required regular expression not found.Regex=[>test_runner: 2 errc: [^
]+
<
] 0.10 sec
Start 18: verrc
18/28 Test #18: verrc ............................***Failed Required regular expression not found.Regex=[>test_runner: 2 verrc: [^
]+
<
] 0.09 sec
Start 19: errx
19/28 Test #19: errx .............................***Failed Required regular expression not found.Regex=[>test_runner: 2 errx
<
] 0.10 sec
Start 20: verrx
20/28 Test #20: verrx ............................***Failed Required regular expression not found.Regex=[>test_runner: 2 verrx
<
] 0.10 sec
Start 21: warn
21/28 Test #21: warn .............................***Failed Required regular expression not found.Regex=[>test_runner: 2 warn: [^
]+
<
] 0.09 sec
Start 22: vwarn
22/28 Test #22: vwarn ............................***Failed Required regular expression not found.Regex=[>test_runner: 2 vwarn: [^
]+
<
] 0.11 sec
Start 23: warnc
23/28 Test #23: warnc ............................***Failed Required regular expression not found.Regex=[>test_runner: 2 warnc: [^
]+
<
] 0.10 sec
Start 24: vwarnc
24/28 Test #24: vwarnc ...........................***Failed Required regular expression not found.Regex=[>test_runner: 2 vwarnc: [^
]+
<
] 0.09 sec
Start 25: warnx
25/28 Test #25: warnx ............................***Failed Required regular expression not found.Regex=[>test_runner: 2 warnx
<
] 0.10 sec
Start 26: vwarnx
26/28 Test #26: vwarnx ...........................***Failed Required regular expression not found.Regex=[>test_runner: 2 vwarnx
<
] 0.09 sec
Start 27: err_uses_set_file
27/28 Test #27: err_uses_set_file ................***Failed Required regular expression not found.Regex=[test_runner: 1 warnx
>test_runner: 2 warnx
<
] 0.09 sec
Start 28: blacklist
28/28 Test #28: blacklist ........................ Passed 0.09 sec
54% tests passed, 13 tests failed out of 28
Total Test time (real) = 3.07 sec
The following tests FAILED:
15 - err (Failed)
16 - verr (Failed)
17 - errc (Failed)
18 - verrc (Failed)
19 - errx (Failed)
20 - verrx (Failed)
21 - warn (Failed)
22 - vwarn (Failed)
23 - warnc (Failed)
24 - vwarnc (Failed)
25 - warnx (Failed)
26 - vwarnx (Failed)
27 - err_uses_set_file (Failed)
Errors while running CTest
make[1]: *** [test] Error 8
make: *** [test] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment