VERSION SPOOFING: tests: spoof the version for the live unit test.
[lttng-tools.git] / tests / regression / tools / live / live_test.cpp
index 559b9a7b1e8298885ae574090a26683e6058eb82..f6554231c3eb28db86d619fbe16a8fa4bf9a4fa8 100644 (file)
@@ -158,7 +158,8 @@ int establish_connection(void)
 
        memset(&connect, 0, sizeof(connect));
        connect.major = htobe32(VERSION_MAJOR);
-       connect.minor = htobe32(VERSION_MINOR);
+       /* JORAJ: TODO: remove when minor version is updated */
+       connect.minor = htobe32(15);
        connect.type = htobe32(LTTNG_VIEWER_CLIENT_COMMAND);
 
        ret_len = lttng_live_send(control_sock, &cmd, sizeof(cmd));
@@ -688,9 +689,9 @@ int main(void)
        ret = connect_viewer("localhost");
        ok(ret == 0, "Connect viewer to relayd");
 
+       /* JORAJ: TODO: Remove when minor version is updated */
        ret = establish_connection();
-       ok(ret == 0, "Established connection and version check with %d.%d",
-                       VERSION_MAJOR, VERSION_MINOR);
+       ok(ret == 0, "Established connection and version check with %d.%d", VERSION_MAJOR, 15);
 
        ret = list_sessions(&session_id);
        ok(ret > 0, "List sessions : %d session(s)", ret);
This page took 0.025673 seconds and 5 git commands to generate.