Browse code
remove trace
Greg Wiley authored on 27/04/2017 19:24:41
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -11,7 +11,6 @@ |
11 | 11 |
|
12 | 12 |
#include <memory> |
13 | 13 |
#include <vector> |
14 |
-#include <iostream> |
|
15 | 14 |
|
16 | 15 |
#include "user.h" |
17 | 16 |
#include "sys_unistd.h" |
... | ... |
@@ -50,12 +49,9 @@ public: |
50 | 49 |
buffer.data(), buffer.size(), &found_passwd); |
51 | 50 |
std::vector<user> return_value; |
52 | 51 |
|
53 |
- std::cout << __FILE__ << " " << __LINE__ << std::endl; |
|
54 | 52 |
if (!result && found_passwd) { |
55 |
- std::cout << __FILE__ << " " << __LINE__ << std::endl; |
|
56 | 53 |
return_value.push_back (user::delegate (new user_impl (sys_passwd))); |
57 | 54 |
} |
58 |
- std::cout << __FILE__ << " " << __LINE__ << std::endl; |
|
59 | 55 |
|
60 | 56 |
return return_value; |
61 | 57 |
} |
... | ... |
@@ -9,7 +9,6 @@ |
9 | 9 |
* at https://github.com/cjdev/dual-control. |
10 | 10 |
*/ |
11 | 11 |
|
12 |
-#include <iostream> |
|
13 | 12 |
|
14 | 13 |
#include "user.h" |
15 | 14 |
#include "test_util.h" |
... | ... |
@@ -94,22 +93,16 @@ int find_user_happy() |
94 | 93 |
{ |
95 | 94 |
//given |
96 | 95 |
std::string user_name ("user"); |
97 |
- std::cout << "here " << __LINE__ << std::endl; |
|
98 | 96 |
pwd test_pwd (pwd::delegate (new fake_pwd (user_name))); |
99 |
- std::cout << "here " << __LINE__ << std::endl; |
|
100 | 97 |
unistd test_unistd (unistd::delegate (new fake_unistd ( |
101 | 98 |
_SC_GETPW_R_SIZE_MAX))); |
102 |
- std::cout << "here " << __LINE__ << std::endl; |
|
103 | 99 |
directory directory (directory::create (test_unistd, test_pwd)); |
104 | 100 |
|
105 | 101 |
//when |
106 |
- std::cout << "here " << __LINE__ << std::endl; |
|
107 | 102 |
std::vector<user> results = directory.find_user (user_name); |
108 | 103 |
|
109 | 104 |
//then |
110 |
- std::cout << "here " << __LINE__ << std::endl; |
|
111 | 105 |
check (!results.empty(), "user should have been found"); |
112 |
- std::cout << "here " << __LINE__ << std::endl; |
|
113 | 106 |
succeed(); |
114 | 107 |
} |
115 | 108 |
|