From 11dabdf3e4006afedf823c42a832288855591a9e Mon Sep 17 00:00:00 2001 From: A C Date: Sat, 26 Dec 2015 17:29:04 -0500 Subject: [PATCH] cleanup the docs --- .gitignore | 3 --- README | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e75d983..be541dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -.dep/ -obj*/ -dist*/ CMakeCache.txt CMakeFiles ExtremeCMock.pc diff --git a/README b/README index 5b3fb7a..8293b57 100644 --- a/README +++ b/README @@ -18,7 +18,7 @@ to build and run the test app, you need to install my ExtremeCUnit testing frame EXAMPLE Say you have some library that function you want to test and it calls the libc function 'time_t time(time_t * t)'. That is going to return current time which is not necessarily going to be consistent in your test. So here is an example of how to mock the time function. It works even when some library you are linking with calls the time function -source for mock_time.c : +source for time_mock.c : .. #include #include @@ -41,8 +41,8 @@ int main (int argc, char *argv) { .. compile and run : -username@hostname:~/my-src/ExtremeCMock$ gcc -o mock_time mock_time.c `pkg-config --cflags --libs ExtremeCMock` -username@hostname:~/my-src/ExtremeCMock$ ./mock_time +username@hostname:~/my-src/ExtremeCMock$ gcc -o time_mock time_mock.c `pkg-config --cflags --libs ExtremeCMock` +username@hostname:~/my-src/ExtremeCMock$ ./time_mock time is now 1343102848 time is now 10 time is now 11