Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c08459d0
Commit
c08459d0
authored
Aug 29, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add assoc tests.
parent
18ac6e1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+30
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+11
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
c08459d0
...
...
@@ -1083,6 +1083,36 @@ rem Oddly windows allows file creation in a read-only directory...
if exist baz\lala (echo file created in read-only dir) else echo file not created
cd .. & rd /s/q foobar
echo ------------ Testing assoc --------------
rem FIXME Can't test error messages in the current test system, so we have to use some kludges
rem FIXME Revise once || conditional execution is fixed
mkdir foobar & cd foobar
echo ...setting association
assoc .foo > baz
type baz
echo ***
assoc .foo=bar
assoc .foo
rem association set system-wide
echo @echo off> tmp.cmd
echo echo +++>> tmp.cmd
echo assoc .foo>> tmp.cmd
cmd /c tmp.cmd
echo ...resetting association
assoc .foo=
assoc .foo > baz
type baz
echo ***
rem association removal set system-wide
cmd /c tmp.cmd > baz
type baz
echo ***
cd .. & rd /s/q foobar
echo ------------ Testing CALL --------------
mkdir foobar & cd foobar
rem External script
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
c08459d0
...
...
@@ -654,6 +654,17 @@ Read-only file forcibly deleted
toto
lulu
file created in read-only dir
------------ Testing assoc --------------
...setting association
***
.foo=bar
@todo_wine@.foo=bar
+++
@todo_wine@.foo=bar
...resetting association
***
+++
***
------------ Testing CALL --------------
foo@space@
foo 8
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment