Lines Matching refs:cmdContentStr

313     std::string cmdContentStr = "NameNotExist";  variable
314 std::string command = cmdStr + cmdContentStr;
317 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
332 std::string cmdContentStr = "/DirNotExist/DirNotExist/DirNotExist"; variable
333 std::string command = cmdStr + cmdContentStr;
336 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
340 DIR *dirTmp = opendir(cmdContentStr.c_str());
349 cmdContentStr = " /storage/data/cmdFuncDoCmdTest003 0755 system";
350 command = cmdStr + cmdContentStr;
353 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
377 std::string cmdContentStr = "755 " + TEST_FILE; // should be 0755, wrong format here variable
378 std::string command = cmdStr + cmdContentStr;
381 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
384 cmdContentStr = "0855 " + TEST_FILE; // should not exceed 0777, wrong format here
385 command = cmdStr + cmdContentStr;
388 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
391 cmdContentStr = "07b5 " + TEST_FILE; // non-digital character, wrong format here
392 command = cmdStr + cmdContentStr;
395 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
398 cmdContentStr = "075 " + TEST_FILE; // should be 0xxx, wrong format here
399 command = cmdStr + cmdContentStr;
402 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
405 cmdContentStr = "0755 " + TEST_FILE; // too many spaces, wrong format here
406 command = cmdStr + cmdContentStr;
409 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
433 std::string cmdContentStr = "888 " + TEST_FILE; // uid or gid missing, wrong format here variable
434 std::string command = cmdStr + cmdContentStr;
437 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
440 cmdContentStr = "888 8b9 " + TEST_FILE; // non-digital character, wrong format here
441 command = cmdStr + cmdContentStr;
444 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
469 std::string cmdContentStr = TEST_DRI + "/cmdFuncDoCmdTest006"; variable
470 std::string command = cmdStr + cmdContentStr;
473 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
476 DIR* dirTmp = opendir(cmdContentStr.c_str());
483 remove(cmdContentStr.c_str());
486 cmdContentStr = "0440 " + TEST_FILE;
487 command = cmdStr + cmdContentStr;
490 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
504 cmdContentStr = "888 888 " + TEST_FILE;
505 command = cmdStr + cmdContentStr;
508 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
849 std::string cmdContentStr = "/patch/file_not_exist.cfg"; variable
853 std::string command = cmdStr + cmdContentStr;
856 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
857 stat(cmdContentStr.c_str(), &testCfgStat);
861 cmdContentStr = TEST_CFG_ILLEGAL;
864 command = cmdStr + cmdContentStr;
867 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
868 EXPECT_EQ(0, stat(cmdContentStr.c_str(), &testCfgStat));
884 std::string cmdContentStr = "/patch/fstab.cfg"; variable
890 std::string command = cmdStr + cmdContentStr;
893 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
897 stat(cmdContentStr.c_str(), &testCfgStat);