Skip to content

Commit

Permalink
Merge pull request #489 from evo-lua/snapshot-test-cleanup
Browse files Browse the repository at this point in the history
Add a missing cleanup step to the snapshot test for the profiling command
  • Loading branch information
Duckwhale committed Feb 9, 2024
2 parents fec9dab + 0b81ac3 commit 5c0defb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/snapshot-test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ local testCases = {
local expectedOutput = "Detected LUAJIT_PROFILEMODE: 3si4m1\n"
.. "Detected LUAJIT_PROFILEFILE: results.txt\n"
local profilingResults = C_FileSystem.ReadFile("results.txt")
C_FileSystem.Delete("results.txt")
profilingResults = profilingResults:gsub("\r\n", "\n") -- LuaJIT opens the file in text mode
assertEquals(observedOutput, expectedOutput)
assertExitSuccess(observedOutput, status, terminationReason, exitCodeOrSignalID)
Expand Down

0 comments on commit 5c0defb

Please sign in to comment.