aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-05-03 13:57:50 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-05-03 13:57:50 +0000
commited55675366966850aa9c1485738fa4232c7432a5 (patch)
tree8dbff3f4663ceb150f0b7474839e5c402b1ca658 /tests
parent65ef2f4aade8cae1be4543ebe3d414474f9f0ce2 (diff)
downloadv-usb-ed55675366966850aa9c1485738fa4232c7432a5.tar.gz
v-usb-ed55675366966850aa9c1485738fa4232c7432a5.tar.bz2
v-usb-ed55675366966850aa9c1485738fa4232c7432a5.zip
- output n/a if values are not in both files
Diffstat (limited to 'tests')
-rwxr-xr-xtests/compare-sizes.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/compare-sizes.awk b/tests/compare-sizes.awk
index 80c7908..d294c54 100755
--- a/tests/compare-sizes.awk
+++ b/tests/compare-sizes.awk
@@ -36,6 +36,10 @@ END{
}
for(i = 0; i < opt; i++){
option = options[i];
- printf("%39s %+6d %+5d\n", option, flash[file2, option] - flash[file1, option], ram[file2, option] - ram[file1, option]);
+ if(!flash[file2, option] || !flash[file1, option]){
+ printf("%39s %6s %5s\n", option, "n/a", "n/a");
+ }else{
+ printf("%39s %+6d %+5d\n", option, flash[file2, option] - flash[file1, option], ram[file2, option] - ram[file1, option]);
+ }
}
}