Remove unnecessary chsmack command 48/317848/1
authorYonggoo Kang <ygace.kang@samsung.com>
Thu, 19 Sep 2024 09:26:36 +0000 (18:26 +0900)
committerYonggoo Kang <ygace.kang@samsung.com>
Thu, 19 Sep 2024 09:26:36 +0000 (18:26 +0900)
Change-Id: If55087b0fdd5e52f72c6eac6cdbf0ce6acb450e4

tests/man_tests.cpp

index 2d417399507ece542ae622d4ab73b0dfd96e9f30..f00ee366ed21ebb6860859aa0a134b5443f9d3bb 100644 (file)
@@ -89,20 +89,7 @@ struct TestContents {
 void DisplayQR(struct TestContents &testContents)
 {
     int ret;
-    std::string command = "/usr/bin/chsmack -a '_' '";
-    command += testContents.qrCodeImagePath;
-    command += '\'';
-
-    // NOLINTNEXTLINE(cert-env33-c,concurrency-mt-unsafe)
-    ret = system(command.c_str());
-    if (ret) {
-        std::cout << "chsmack command failed\n"
-                  << "System() returned: " << ret << std::endl; // NOLINT(performance-avoid-endl)
-        testContents.succeeded = false;
-        return;
-    }
-
-    command = "/usr/bin/webauthn-image-viewer ";
+    std::string command = "/usr/bin/webauthn-image-viewer ";
     command += testContents.qrCodeImagePath;
     command += " &"; // run background