summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/test/uniquepipename.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/osl/test/uniquepipename.hxx b/include/osl/test/uniquepipename.hxx
index bdffb28ca2c0..0b1f9c68a695 100644
--- a/include/osl/test/uniquepipename.hxx
+++ b/include/osl/test/uniquepipename.hxx
@@ -26,16 +26,19 @@
namespace osl {
namespace test {
-OUString uniquePipeName(OUString const & name) {
+OUString uniquePipeName(OUString const & name)
+{
oslProcessInfo info;
info.Size = sizeof info;
+
CPPUNIT_ASSERT_EQUAL(
osl_Process_E_None,
osl_getProcessInfo(nullptr, osl_Process_IDENTIFIER, &info));
+
return name + OUString::number(info.Ident);
}
-}
-}
+} // test namespace
+} // osl namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */