some cleanup of the old magick stuff to make diffing with the new stuff easier

git-svn-id: https://zxing.googlecode.com/svn/trunk@2641 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2013-04-09 04:53:28 +00:00
parent 23cceabba0
commit 2360d41904
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
blackboxpath="../core/test/data/blackbox"

View file

@ -123,7 +123,7 @@ int test_image(Image& image, bool hybrid, string expected = "") {
}
}
if (raw_dump && !hybrid) {/* don't print twice, and global is a bit better */
if (res == 0) {
cout << cell_result;
if (show_format) {
cout << " " << result_format;
@ -304,7 +304,12 @@ int main(int argc, char** argv) {
int gresult = 1;
int hresult = 1;
hresult = test_image_hybrid(image, expected);
gresult = test_image_global(image, expected);
if (!raw_dump || hresult != 0) {
gresult = test_image_global(image, expected);
if (raw_dump && gresult != 0) {
cout << "decoding failed" << endl;
}
}
gresult = gresult == 0;
hresult = hresult == 0;
@ -324,5 +329,3 @@ int main(int argc, char** argv) {
return 0;
}