19 #include <system_error>
26 std::string abstractPath;
34 abstractPath =
"/tmp/fakedriver-test";
35 setenv(
"FAKEDRIVER_ADDRESS", abstractPath.c_str(), 1);
46 driverListener.
setup();
59 if (driverConnection != -1) close(driverConnection);
60 if (driverFds[0] != -1) close(driverFds[0]);
61 if (driverFds[1] != -1) close(driverFds[1]);
62 driverConnection = -1;
70 cnx.
send(
"<pingRequest uid='flush'/>\n");
76 driverConnection = -1;
void send(const std::string &content)
void setFds(int rd, int wr)
void expectXml(const std::string &xml)
int unixSocketListen(const std::string &unixAddr)
void unixSocketRecvFds(int fd, int count, int *fdsDest)