File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -219,20 +219,17 @@ try
219
219
@fact lenload0 + 1 --> length (FileIO. sym2loader)
220
220
@fact length (FileIO. sym2loader[:MultiLib ]) --> 2
221
221
@fact length (FileIO. sym2saver[:MultiLib ]) --> 1
222
-
223
- mktempdir () do tmpdir
224
- fn = joinpath (tmpdir, " test.mlb" )
225
- save (fn)
226
- x = load (fn)
227
- open (query (fn), " r" ) do io
228
- skipmagic (io)
229
- a = read (io, Int)
230
- @fact a --> 42 # make sure that LoadTest2 is used for saving, even though its at position 2
231
- end
232
- @fact isdefined (:LoadTest1 ) --> true # first module should load first but fail
233
- @fact x --> 42
222
+ fn = string (tempname (), " .mlb" )
223
+ save (fn)
224
+ x = load (fn)
225
+ open (query (fn), " r" ) do io
226
+ skipmagic (io)
227
+ a = read (io, Int)
228
+ @fact a --> 42 # make sure that LoadTest2 is used for saving, even though its at position 2
234
229
end
235
-
230
+ @fact isdefined (:LoadTest1 ) --> true # first module should load first but fail
231
+ @fact x --> 42
232
+ rm (fn)
236
233
end
237
234
finally
238
235
# Restore the registry
You can’t perform that action at this time.
0 commit comments