mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
test: nasm-t -- Reverse the comparision order
Comparing new and old data is inconvenient since it rathe shows the reverse diff. Use straight direction instead. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
763cad619d
commit
e7da0b5455
@ -337,7 +337,7 @@ def test_run(desc):
|
|||||||
match_data = read_stdfile(match)
|
match_data = read_stdfile(match)
|
||||||
if match_data == None:
|
if match_data == None:
|
||||||
return test_fail(test, "Can't read " + match)
|
return test_fail(test, "Can't read " + match)
|
||||||
if cmp_std('stdout', stdout, match, match_data) == False:
|
if cmp_std(match, match_data, 'stdout', stdout) == False:
|
||||||
return test_fail(desc['_test-name'], "Stdout mismatch")
|
return test_fail(desc['_test-name'], "Stdout mismatch")
|
||||||
else:
|
else:
|
||||||
stdout = ""
|
stdout = ""
|
||||||
@ -347,7 +347,7 @@ def test_run(desc):
|
|||||||
match_data = read_stdfile(match)
|
match_data = read_stdfile(match)
|
||||||
if match_data == None:
|
if match_data == None:
|
||||||
return test_fail(test, "Can't read " + match)
|
return test_fail(test, "Can't read " + match)
|
||||||
if cmp_std('stderr', stderr, match, match_data) == False:
|
if cmp_std(match, match_data, 'stderr', stderr) == False:
|
||||||
return test_fail(desc['_test-name'], "Stderr mismatch")
|
return test_fail(desc['_test-name'], "Stderr mismatch")
|
||||||
else:
|
else:
|
||||||
stderr = ""
|
stderr = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user