Mercurial > octave
annotate test/bug-50831/bug-50831.tst @ 33660:836084110d9c default tip @
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 12 Jun 2024 11:01:06 +0200 |
parents | 9080316864bf |
children |
rev | line source |
---|---|
30110
9080316864bf
update bug status in test suite
John W. Eaton <jwe@octave.org>
parents:
30109
diff
changeset
|
1 %!test <*50831> |
28296
6beb610b3bcd
Place BIST test file in temp directory, rather than current dir (bug #50831).
Rik <rik@octave.org>
parents:
28161
diff
changeset
|
2 %! filename = tempname (); |
28161
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
3 %! s.("a-b") = "bad fieldname"; |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
4 %! unwind_protect |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
5 %! save ("-text", filename, "s"); |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
6 %! filevar = load (filename); |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
7 %! assert (filevar.s, s); |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
8 %! unwind_protect_cleanup |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
9 %! sts = unlink (filename); |
ef349f5c320b
Load structures with arbitrary string fieldnames (bug #50831, bug #46645).
Olaf Till <i7tiol@t-online.de>
parents:
diff
changeset
|
10 %! end_unwind_protect |