Skip to content

Commit 2a789ae

Browse files
committed
Fixup test typo
1 parent 47b92a3 commit 2a789ae

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/PProf.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ end
9999
end
100100
end
101101

102+
103+
const HAS_META = isdefined(Profile, :has_meta)
102104
@testset "with_c" begin
103105
Profile.clear()
104106

@@ -110,28 +112,28 @@ end
110112
end
111113
@testset for i in 1:4
112114
if i == 1
113-
if !Profile.has_meta
115+
if !HAS_META
114116
continue
115117
end
116118
data = Profile.fetch(include_meta = true)
117119
args = (data,)
118120
elseif i == 2
119-
if !Profile.has_meta
121+
if !HAS_META
120122
continue
121123
end
122124
data,lidict = Profile.retrieve(include_meta = true)
123125
args = (data, lidict)
124126
elseif i == 3
125127
# Ensure we are backwards compatible with older, non-meta profiles
126-
if Profile.has_meta
128+
if HAS_META
127129
data = Profile.fetch(include_meta = false)
128130
else
129131
data = Profile.fetch()
130132
end
131133
args = (data,)
132134
else
133135
# Ensure we are backwards compatible with older, non-meta profiles
134-
if Profile.has_meta
136+
if HAS_META
135137
data,lidict = Profile.retrieve(include_meta = false)
136138
else
137139
data,lidict = Profile.retrieve()

0 commit comments

Comments
 (0)