From 0a10f5e2ea0750d4a5f7ea682eea7a651dbeacd6 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 11 May 2012 18:45:59 -0400 Subject: [PATCH] libupkg: Actually fail if the index-decode test fails... Oops. --- tests/libupkg-index-decode.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/libupkg-index-decode.sh b/tests/libupkg-index-decode.sh index b82bbc9..f5c913d 100644 --- a/tests/libupkg-index-decode.sh +++ b/tests/libupkg-index-decode.sh @@ -38,17 +38,17 @@ test_index() { esac } -test_index 00 0 -test_index 4000 0 -test_index 408000 0 -test_index 40808000 0 -test_index 4080808000 0 +test_index 00 0 || exit 1 +test_index 4000 0 || exit 1 +test_index 408000 0 || exit 1 +test_index 40808000 0 || exit 1 +test_index 4080808000 0 || exit 1 # False positives -test_index '' -test_index 40 -test_index 4080 -test_index 408080 -test_index 40808080 -test_index 4080808080 -test_index 408080808000 +test_index '' || exit 1 +test_index 40 || exit 1 +test_index 4080 || exit 1 +test_index 408080 || exit 1 +test_index 40808080 || exit 1 +test_index 4080808080 || exit 1 +test_index 408080808000 || exit 1 -- 2.43.0