cim = ContextInfoManager.getInstance();
} catch (SecurityException | IOException e) {
/* The native library is not available! */
- fail();
+ fail(e.getMessage());
}
session = ILttngSession.createSession(null, getDomain());
}
assertNotNull(output);
assertFalse(output.isEmpty());
- String expectedString = "_app_" + RETRIEVER_NAME + "_" + CONTEXT_NAME + " = { string = \"" + CONTEXT_VALUE + "\" } }";
+ String traceRetriverName = RETRIEVER_NAME.replace('.', '_');
+ String traceContextName = CONTEXT_NAME.replace('.', '_');
+
+ String expectedString = "_app_" + traceRetriverName + "_" + traceContextName + " = { \"" + CONTEXT_VALUE + "\" } }";
output.forEach(line -> assertTrue(line.contains(expectedString)));
}