noncompile.exp: Load_lib c-torture.exp.

* noncompile/noncompile.exp: Load_lib c-torture.exp.
        (postbase_with_opts): New proc to loop over TORTURE_OPTIONS and
        call `postbase' for each one.  All callers of `postbase' changed
        to call this instead.

From-SVN: r28821
This commit is contained in:
Kaveh R. Ghazi 1999-08-24 13:21:46 +00:00 committed by Kaveh Ghazi
parent bf6bb899e1
commit 33f58a4e96
2 changed files with 46 additions and 28 deletions

View File

@ -1,3 +1,10 @@
1999-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* noncompile/noncompile.exp: Load_lib c-torture.exp.
(postbase_with_opts): New proc to loop over TORTURE_OPTIONS and
call `postbase' for each one. All callers of `postbase' changed
to call this instead.
1999-08-11 Richard Earnshaw (rearnsha@arm.com)
* gcc.c-torture/execute/990811-1.c: New test.

View File

@ -1,4 +1,4 @@
# Copyright (C) 1988, 1990, 1991, 1992, 1997 Free Software Foundation, Inc.
# Copyright (C) 1988, 90-92, 1997, 1999 Free Software Foundation, 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
@ -26,6 +26,17 @@
load_lib mike-gcc.exp
# This is done just to set the value of TORTURE_OPTIONS.
load_lib c-torture.exp
proc postbase_with_opts { src run groups } {
global TORTURE_OPTIONS
# loop through all the options
foreach option $TORTURE_OPTIONS {
postbase $src $run $groups $option
}
}
# Test 920507-1.c
prebase
@ -34,7 +45,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 920616-2.c
@ -45,7 +56,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 920721-2.c
@ -56,7 +67,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 920824-1.c
@ -67,7 +78,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 920923-1.c
@ -78,7 +89,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 921102-1.c
@ -89,7 +100,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 921116-1.c
@ -100,7 +111,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 930301-1.c
@ -111,7 +122,7 @@ set compiler_output ".*:4:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 930622-1.c
@ -122,7 +133,7 @@ set compiler_output ".*:5:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 930622-2.c
@ -133,7 +144,7 @@ set compiler_output ".*:4:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 930714-1.c
@ -145,7 +156,7 @@ set compiler_output ".*:18.*:23"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 931203-1.c
prebase
@ -155,7 +166,7 @@ set compiler_output ".*:10"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 940112-1.c
@ -166,7 +177,7 @@ set compiler_output ".*:7"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 940227-1.c
@ -177,7 +188,7 @@ set compiler_output ".*:5.*:5"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 940510-1.c
@ -188,7 +199,7 @@ set compiler_output ".*:1.*:1"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 940712-1.c
@ -199,7 +210,7 @@ set compiler_output ".*:8.*:4"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 950825-1.c
@ -209,7 +220,7 @@ set compiler_output ".*:1.*:1.*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 950921-1.c
@ -219,7 +230,7 @@ set compiler_output ".*:3.*:3.*:9.*:9:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 951025-1.c
@ -229,7 +240,7 @@ set compiler_output ".*:\[12\]:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 951123-1.c
@ -239,7 +250,7 @@ set compiler_output ".*:2:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 951227-1.c
@ -249,7 +260,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 971104-1.c
@ -259,7 +270,7 @@ set compiler_output ".*:25:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test 990416-1.c
prebase
@ -268,7 +279,7 @@ set compiler_output ".*:4:.*:6:.*:6:.*:6:.*:6:.*:6:.*:7:.*:7:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test init-1.c
prebase
@ -277,7 +288,7 @@ set compiler_output ".*:12.*:12.*:13.*:13.*:14.*:14.*:15.*:15.*:16.*:16:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test init-2.c
@ -287,7 +298,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test invalid_asm.c
@ -297,7 +308,7 @@ set compiler_output ".*:1:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups
# Test va-arg-1.c
@ -311,4 +322,4 @@ set compiler_output ".*:6:"
set groups {passed gcc-noncompile}
postbase $src_code $run $groups
postbase_with_opts $src_code $run $groups