Fix tests on Windows.

This commit is contained in:
Qi Xiao 2024-06-27 16:12:48 +08:00
parent d133897c83
commit 0dc8050897
2 changed files with 6 additions and 8 deletions

View File

@ -11,9 +11,8 @@
▶ $true
## bad path ##
~> elvish -cpuprofile bad/cpu
[stderr] Warning: cannot create CPU profile: open bad/cpu: no such file or directory
[stderr] Continuing without CPU profiling.
~> elvish -cpuprofile bad/cpu &check-stderr-contains='Warning: cannot create CPU profile:'
[stderr contains "Warning: cannot create CPU profile:"] true
//////////////////
@ -26,7 +25,6 @@
▶ $true
## bad path ##
~> elvish -allocsprofile bad/allocs
[stderr] Warning: cannot create memory allocation profile: open bad/allocs: no such file or directory
[stderr] Continuing without memory allocation profiling.
~> elvish -allocsprofile bad/allocs &check-stderr-contains='Warning: cannot create memory allocation profile:'
[stderr contains "Warning: cannot create memory allocation profile:"] true

View File

@ -26,8 +26,8 @@
~> use os
os:exists log
▶ $true
~> (p [&]) -log bad/log
[stderr] open bad/log: no such file or directory
~> (p [&]) -log bad/log &check-stderr-contains='open bad/log:'
[stderr contains "open bad/log:"] true
## -deprecation-level ##
//deprecation-level 0