Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier F. R. Dierick
wine
Commits
c08459d0
Commit
c08459d0
authored
13 years ago
by
Frédéric Delanoy
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmd/tests: Add assoc tests.
parent
18ac6e1a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
programs/cmd/tests/test_builtins.cmd
+30
-0
30 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd
programs/cmd/tests/test_builtins.cmd.exp
+11
-0
11 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd.exp
with
41 additions
and
0 deletions
programs/cmd/tests/test_builtins.cmd
+
30
−
0
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
...
...
This diff is collapsed.
Click to expand it.
programs/cmd/tests/test_builtins.cmd.exp
+
11
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment