From be7939ed4747a097d917df23ac790421d53bbba6 Mon Sep 17 00:00:00 2001 From: Sumera Priyadarsini Date: Thu, 22 Feb 2024 16:58:31 +0530 Subject: [PATCH] Get compiler label check to pass --- test/integration/native/native_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/native/native_test.go b/test/integration/native/native_test.go index dbc29695f9..e04f3fcfb4 100644 --- a/test/integration/native/native_test.go +++ b/test/integration/native/native_test.go @@ -258,7 +258,7 @@ func TestCPUProfiler(t *testing.T) { // Test expected metadata. require.Equal(t, string(sample.Labels["comm"]), "basic-cpp-no-fp-with-debuginfo"[:15]) // comm is limited to 16 characters including NUL. require.True(t, strings.Contains(string(sample.Labels["executable"]), "basic-cpp-no-fp-with-debuginfo")) - require.True(t, strings.HasPrefix(string(sample.Labels["compiler"]), "GCC")) + require.True(t, strings.HasPrefix(string(sample.Labels["compiler"]), "\x00clang")) require.NotEmpty(t, string(sample.Labels["kernel_release"])) require.NotEmpty(t, string(sample.Labels["cgroup_name"])) metadataPid, err := strconv.Atoi(string(sample.Labels["pid"]))