Skip to content

Commit

Permalink
Get compiler label check to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylfrena committed Feb 22, 2024
1 parent dab6998 commit be7939e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/native/native_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))
Expand Down

0 comments on commit be7939e

Please sign in to comment.