#!/bin/bash - # libguestfs # Copyright (C) 2009 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Regression test for: # https://bugzilla.redhat.com/show_bug.cgi?id=557655 # "guestfish number parsing should not use atoi, should support '0...' for octal and '0x...' for hexadecimal" set -e rm -f test.out test.err export LANG=C ../fish/guestfish >> test.out 2>> test.err <> test.out 2>> test.err < test.err rm test.err~ diff -u test.out rhbz557655-expected.stdout diff -u test.err rhbz557655-expected.stderr rm test.out test.err test1.img