Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jan 11, 2024
1 parent 401ddaa commit 203e747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ julia_categories = DataFrame(DBInterface.execute(db, """
WHERE eventType = $NvtxCategory AND domainId = $julia_domainId
ORDER BY category
"""))
@test julia_categories.category == [1, 2, 3]
@test julia_categories.text == ["auto", "full", "incremental"]
@test julia_categories.category == [1, 2, 3, 11]
@test julia_categories.text == ["GC auto", "GC full", "GC incremental", "compiler inference"]

julia_ranges = DataFrame(DBInterface.execute(db, """
SELECT COALESCE(text, value) as text, category, color
FROM NVTX_EVENTS
LEFT JOIN StringIds on textId == id
WHERE eventType = $NvtxPushPopRange AND domainId = $julia_domainId AND category > 1
WHERE eventType = $NvtxPushPopRange AND domainId = $julia_domainId AND category > 1 AND category < 10
ORDER BY start
""")) # exclude auto GC
@test julia_ranges.text == ["GC" for i = 1:2]
Expand Down

0 comments on commit 203e747

Please sign in to comment.