m_hdr.msg_control = m_cmsgbuf;
m_hdr.msg_controllen = CMSG_SPACE(sizeof(int));
- m_cmsg = CMSG_FIRSTHDR(&m_hdr);
+ cmsghdr *m_cmsg = CMSG_FIRSTHDR(&m_hdr);
m_cmsg->cmsg_len = CMSG_LEN(sizeof(int));
m_cmsg->cmsg_level = SOL_SOCKET;
m_cmsg->cmsg_type = SCM_RIGHTS;
private:
msghdr m_hdr;
iovec m_iov;
- cmsghdr *m_cmsg;
unsigned char m_cmsgbuf[CMSG_SPACE(sizeof(int))];
int m_resultCode;
int m_fileDesc;
BOOST_AUTO_TEST_CASE(T325_app_name_pkg_author_exists)
{
- int authorId;
+ int authorId = -1;
addAppSuccess(app(1), pkg(1), uid(1), tizenVer(1), author(1), NotHybrid);
addAppSuccess(app(2), pkg(2), uid(1), tizenVer(1), author(2), NotHybrid);
FileFixture()
{
fd = open(path, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
- BOOST_REQUIRE_MESSAGE(fd > 0, "Failed to open file: " << path);
+ BOOST_REQUIRE_MESSAGE(fd >= 0, "Failed to open file: " << path);
}
~FileFixture()
BOOST_REQUIRE_MESSAGE(ret == 0, "Failed to make directory: " << subdirectoryPath);
ret = creat(execPath, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
- BOOST_REQUIRE_MESSAGE(ret > 0, "Failed to creat file: " << execPath);
+ BOOST_REQUIRE_MESSAGE(ret >= 0, "Failed to creat file: " << execPath);
close(ret);
ret = symlink(execPath, linkPath);