From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:38
|
Commit-ID: 2a34d0287e74b3d892ca866f883c5868f0e8963f Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=2a34d0287e74b3d892ca866f883c5868f0e8963f Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 3 Nov 2018 17:38:40 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Add align13s test Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/{align13.asm => align13s.asm} | 3 ++- travis/test/align13s.json | 25 +++++++++++++++++++++++++ travis/test/align13s.stderr | 3 +++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/travis/test/align13.asm b/travis/test/align13s.asm similarity index 83% copy from travis/test/align13.asm copy to travis/test/align13s.asm index 556373f..8262120 100644 --- a/travis/test/align13.asm +++ b/travis/test/align13s.asm @@ -1,5 +1,7 @@ ; Test of non-power-of-2 alignment +%use smartalign + bits 32 inc eax @@ -11,6 +13,5 @@ inc eax inc eax align 13 - align 13 ;should do nothing inc eax inc eax diff --git a/travis/test/align13s.json b/travis/test/align13s.json new file mode 100644 index 0000000..43cf673 --- /dev/null +++ b/travis/test/align13s.json @@ -0,0 +1,25 @@ +[ + { + "description": "Test of non-power-of-2 smart-alignment (-Ox)", + "id": "align13s", + "format": "bin", + "source": "align13s.asm", + "option": "-Ox -o align13s.bin", + "target": [ + { "stderr": "align13s.stderr" } + ], + "error": "expected" + }, + { + "description": "Test of non-power-of-2 smart-alignment (-O1)", + "ref": "align13s", + "option": "-O1 -o align13s.bin", + "update": "false" + }, + { + "description": "Test of non-power-of-2 smart-alignment (-O0)", + "ref": "align13s", + "option": "-O0 -o align13s.bin", + "update": "false" + } +] diff --git a/travis/test/align13s.stderr b/travis/test/align13s.stderr new file mode 100644 index 0000000..fe0337a --- /dev/null +++ b/travis/test/align13s.stderr @@ -0,0 +1,3 @@ +./travis/test/align13s.asm:9: error: segment alignment `13' is not power of two +./travis/test/align13s.asm:12: error: segment alignment `13' is not power of two +./travis/test/align13s.asm:15: error: segment alignment `13' is not power of two \ No newline at end of file |