Adapt tests to babeltrace 2 output.
[lttng-ust-java-tests.git] / lttng-ust-java-tests-common / src / main / java / org / lttng / ust / agent / integration / context / AppContextOrderingITBase.java
index d0acca359c141455a173bc67d1e95f58886e8bd7..d567c18b986c13e0db5c78f9f0b51ee3875a748f 100644 (file)
@@ -78,7 +78,7 @@ public abstract class AppContextOrderingITBase {
             cim = ContextInfoManager.getInstance();
         } catch (SecurityException | IOException e) {
             /* The native library is not available! */
-            fail();
+            fail(e.getMessage());
         }
         session = ILttngSession.createSession(null, getDomain());
     }
@@ -144,7 +144,10 @@ public abstract class AppContextOrderingITBase {
         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)));
     }
 
This page took 0.03316 seconds and 4 git commands to generate.