Skip to content

Commit

Permalink
Added test for [4f0b5767ac].
Browse files Browse the repository at this point in the history
  • Loading branch information
apnadkarni committed Jan 26, 2025
1 parent b1129d2 commit 8434786
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/exec.test
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ source [file join [file dirname [info script]] tcltests.tcl]
# Some skips when running in a macOS CI environment
testConstraint noosxCI [expr {![info exists ::env(MAC_CI)]}]

# Need a App Exec Alias for testing exec of reparse points
if {[info exists ::env(LOCALAPPDATA)] &&
[file exists [file join $::env(LOCALAPPDATA) "Microsoft" "WindowsApps" "winget.exe"]]} {
testConstraint haveWinget 1
}

unset -nocomplain path

# Utilities that are like Bourne shell stalwarts, but cross-platform.
Expand Down Expand Up @@ -741,6 +747,10 @@ test exec-21.2 {exec encoding mismatch on stderr} -setup {
list [catch {exec [info nameofexecutable] $path(script)} r] $r
} -result [list 1 a\uFFFDb]

test exec-bug-4f0b5767ac {exec App Execution Alias} -constraints haveWinget -body {
exec winget --info
} -result "Windows Package Manager*" -match glob


# ----------------------------------------------------------------------
# cleanup
Expand Down

0 comments on commit 8434786

Please sign in to comment.