Skip to content

Commit 1ff3136

Browse files
Bigombyeugpermar
authored andcommitted
🐛 Fix n2kafka path on test 0014 and 0015
1 parent 3fd1261 commit 1ff3136

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/0014-http-posts.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ int main() {
262262
close(1);
263263
close(2);
264264
open("/dev/null", O_RDWR);
265-
(void)(dup(0)+1);
266-
(void)(dup(0)+1);
265+
(void)(dup(0) + 1);
266+
(void)(dup(0) + 1);
267267

268-
execlp("../n2kafka", "n2kafka",
269-
"../configs_example/n2kafka_config_rbhttp.json", (char *)0);
268+
execlp("./n2kafka", "n2kafka", "configs_example/n2kafka_config_rbhttp.json",
269+
(char *)0);
270270
printf("Error executing n2kafka\n");
271271
exit(1);
272272

tests/0015-kafka-producer.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ static void test_send_message_http() {
112112

113113
if (pID == 0) {
114114
// Close stdin, stdout, stderr
115-
close(0);
116-
close(1);
117-
close(2);
118-
open("/dev/null", O_RDWR);
119-
(void)(dup(0) + 1);
120-
(void)(dup(0) + 1);
121-
122-
execlp("../n2kafka", "n2kafka",
123-
"../configs_example/n2kafka_tests_http.json", (char *)0);
115+
// close(0);
116+
// close(1);
117+
// close(2);
118+
// open("/dev/null", O_RDWR);
119+
// (void)(dup(0) + 1);
120+
// (void)(dup(0) + 1);
121+
122+
execlp("./n2kafka", "n2kafka", "configs_example/n2kafka_tests_http.json",
123+
(char *)0);
124124
printf("Error executing n2kafka\n");
125125
exit(1);
126126

@@ -240,7 +240,7 @@ static void test_send_message_tcp() {
240240
(void)(dup(0) + 1);
241241
(void)(dup(0) + 1);
242242

243-
execlp("../n2kafka", "n2kafka", "../configs_example/n2kafka_tests_tcp.json",
243+
execlp("./n2kafka", "n2kafka", "configs_example/n2kafka_tests_tcp.json",
244244
(char *)0);
245245
printf("Error executing n2kafka\n");
246246
exit(1);

0 commit comments

Comments
 (0)