Fix lxcpp tests 12/45212/2
authorDariusz Michaluk <d.michaluk@samsung.com>
Mon, 3 Aug 2015 13:52:58 +0000 (15:52 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 3 Aug 2015 14:29:08 +0000 (16:29 +0200)
[Bug]           N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  N/A

Change-Id: Idf5939f96ffb6af7380cfc5fe216361b53402801

tests/unit_tests/lxcpp/ut-process.cpp

index df9f33d..cae893a 100644 (file)
@@ -83,9 +83,9 @@ BOOST_AUTO_TEST_CASE(Setns)
                    Namespace::IPC,
                    Namespace::NET
                   });
-            exit(TEST_PASSED);
+            _exit(TEST_PASSED);
         } catch(...) {
-            exit(ERROR);
+            _exit(ERROR);
         }
     } else if(pid>0) {
         int status = -1;
@@ -105,11 +105,11 @@ BOOST_AUTO_TEST_CASE(SetnsUserNamespace)
     } else if(pid ==0) {
         try {
             setns({Namespace::USER});
-            exit(ERROR);
+            _exit(ERROR);
         } catch(ProcessSetupException) {
-            exit(TEST_PASSED);
+            _exit(TEST_PASSED);
         } catch(...) {
-            exit(ERROR);
+            _exit(ERROR);
         }
     } else if(pid>0) {
         int status;