From 835e68bd764db31d83927b8e36c10b677f229c38 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 10 Oct 2018 11:30:10 +0200 Subject: [PATCH] fix test: sign extension does not depend on 32 or 64 bit architecture any more --- streamApp/tests/testFormats | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/streamApp/tests/testFormats b/streamApp/tests/testFormats index 2ade7c8..cb31aa0 100755 --- a/streamApp/tests/testFormats +++ b/streamApp/tests/testFormats @@ -54,8 +54,6 @@ set debug 0 startioc # Some formats give different results on 32 bit and 64 bit machines. -# This occurs when printing negative numbers with unsigned formats. -# This is normal. E.g. -1 HAS a different number of 1 bits. # Specify the width field in the format if this is a problem. put DZ:percent 1 @@ -75,17 +73,9 @@ assure "12345 12345 012345 3039 003039 11000000111001 11000000111001 111001 !!.. put DZ:lo 2147483647 assure "2147483647 2147483647 2147483647 7fffffff FFFFFF 1111111111111111111111111111111 1111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" put DZ:lo -1 -if {$tcl_platform(machine) == "x86_64"} { -assure "-1 -1 -00001 ffffffffffffffff FFFFFF 1111111111111111111111111111111111111111111111111111111111111111 1111111111111111111111111111111111111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" -} else { assure "-1 -1 -00001 ffffffff FFFFFF 11111111111111111111111111111111 11111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" -} put DZ:lo -1234 -if {$tcl_platform(machine) == "x86_64"} { -assure "-1234 -1234 -01234 fffffffffffffb2e FFFB2E 1111111111111111111111111111111111111111111111111111101100101110 1111111111111111111111111111111111111111111111111111101100101110 101110 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!..!.!!!. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!..!.!!!.\n" -} else { assure "-1234 -1234 -01234 fffffb2e FFFB2E 11111111111111111111101100101110 11111111111111111111101100101110 101110 !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!. !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!.\n" -} put DZ:lo 255 assure "255 255 000255 ff 0000FF 11111111 11111111 111111 !!!!!!!! !!!!!!!!\n" put DZ:lo 65535