aboutsummaryrefslogtreecommitdiff
path: root/winsup/testsuite
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-02-08 02:56:49 +0000
committerChristopher Faylor <me@cgf.cx>2003-02-08 02:56:49 +0000
commit9cca06eea1c41b643d102bd00b121df86b12ec5f (patch)
tree44c8696fec6f39fbe7e46de8984902ca4bcdca1b /winsup/testsuite
parent3202ad2b9e81df3bd61afa56fd2622e115b334c3 (diff)
downloadnewlib-9cca06eea1c41b643d102bd00b121df86b12ec5f.zip
newlib-9cca06eea1c41b643d102bd00b121df86b12ec5f.tar.gz
newlib-9cca06eea1c41b643d102bd00b121df86b12ec5f.tar.bz2
* libltp/lib/parse_opts.c: Deal with C warnings.
* winsup.api/pthread/cancel12.c: Ditto. * winsup.api/winsup.exp: Don't use -g3.
Diffstat (limited to 'winsup/testsuite')
-rw-r--r--winsup/testsuite/ChangeLog6
-rw-r--r--winsup/testsuite/Makefile.in5
-rw-r--r--winsup/testsuite/libltp/lib/parse_opts.c36
-rw-r--r--winsup/testsuite/winsup.api/pthread/cancel12.c1
-rw-r--r--winsup/testsuite/winsup.api/winsup.exp2
5 files changed, 29 insertions, 21 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog
index e3906d2..beb33c2 100644
--- a/winsup/testsuite/ChangeLog
+++ b/winsup/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-07 Christopher Faylor <cgf@redhat.com>
+
+ * libltp/lib/parse_opts.c: Deal with C warnings.
+ * winsup.api/pthread/cancel12.c: Ditto.
+ * winsup.api/winsup.exp: Don't use -g3.
+
2003-02-04 Thomas Pfaff <tpfaff@gmx.net>
* winsup.api/pthread/cancel11.c: New test.
diff --git a/winsup/testsuite/Makefile.in b/winsup/testsuite/Makefile.in
index bb3d5c9..14b6ab2 100644
--- a/winsup/testsuite/Makefile.in
+++ b/winsup/testsuite/Makefile.in
@@ -56,7 +56,6 @@ else
CFLAGS:=@CFLAGS@ -MD $(TESTSUP_INCLUDES)
endif
CXXFLAGS:=@CXXFLAGS@
-export ALL_CFLAGS
AR:=@AR@
AR_FLAGS:=qv
@@ -92,6 +91,10 @@ RUNTIME=$(cygwin_build)/new-cygwin1.dll $(cygwin_build)/new-libcygwin.a
TESTSUP_LIB_NAME:=libltp.a
TESTSUP_OFILES:=${sort ${addsuffix .o,${basename ${notdir ${wildcard $(libltp_srcdir)/lib/*.c}}}}}
+override ALL_CFLAGS:=${filter-out -O%,$(ALL_CFLAGS)}
+override COMPILE_CC:=${filter-out -O%,$(COMPILE_CC)}
+override CFLAGS:=${filter-out -O%,$(CFLAGS)}
+
.PHONY: all force dll_ofiles install all_target install_target all_host install_host
.SUFFIXES:
diff --git a/winsup/testsuite/libltp/lib/parse_opts.c b/winsup/testsuite/libltp/lib/parse_opts.c
index e4da236..4a80589 100644
--- a/winsup/testsuite/libltp/lib/parse_opts.c
+++ b/winsup/testsuite/libltp/lib/parse_opts.c
@@ -100,6 +100,24 @@
#define DEBUG 0
#endif
+/*
+ * Code from usctest.h that not part of this file since we are the library.
+ */
+
+struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
+
+ /***********************************************************************
+ * Globals for returning the return code and errno from the system call
+ * test macros.
+ ***********************************************************************/
+int TEST_RETURN;
+int TEST_ERRNO;
+
+ /***********************************************************************
+ * temporary variables for determining max and min times in TEST macro
+ ***********************************************************************/
+long btime, etime, tmptime;
+
/* The timing information block. */
struct tblock tblock={0,((long) -1)>>1,0,0};
@@ -808,24 +826,6 @@ int Help = 0;
int Help2 = 0;
char *ptr;
-/*
- * Code from usctest.h that not part of this file since we are the library.
- */
-
-struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
-
- /***********************************************************************
- * Globals for returning the return code and errno from the system call
- * test macros.
- ***********************************************************************/
-int TEST_RETURN;
-int TEST_ERRNO;
-
- /***********************************************************************
- * temporary variables for determining max and min times in TEST macro
- ***********************************************************************/
-long btime, etime, tmptime;
-
/* for test specific parse_opts options */
diff --git a/winsup/testsuite/winsup.api/pthread/cancel12.c b/winsup/testsuite/winsup.api/pthread/cancel12.c
index f1c64e3..12273d6 100644
--- a/winsup/testsuite/winsup.api/pthread/cancel12.c
+++ b/winsup/testsuite/winsup.api/pthread/cancel12.c
@@ -58,7 +58,6 @@ static void *Thread(void *punused)
int main (void)
{
- void *old_sigh;
void * result;
pthread_t t;
diff --git a/winsup/testsuite/winsup.api/winsup.exp b/winsup/testsuite/winsup.api/winsup.exp
index c79889e..8606466 100644
--- a/winsup/testsuite/winsup.api/winsup.exp
+++ b/winsup/testsuite/winsup.api/winsup.exp
@@ -48,7 +48,7 @@ foreach src [glob -nocomplain $srcdir/$subdir/*.c $srcdir/$subdir/*/*.c] {
clear_xfail
}
- ws_spawn "$CC -g3 -nodefaultlibs -mwin32 $CFLAGS $src $add_includes $add_libs $runtime_root/binmode.o -lgcc $runtime_root/new-libcygwin.a -lkernel32 -luser32 -o $base.exe"
+ ws_spawn "$CC -nodefaultlibs -mwin32 $CFLAGS $src $add_includes $add_libs $runtime_root/binmode.o -lgcc $runtime_root/new-libcygwin.a -lkernel32 -luser32 -o $base.exe"
if { $rv != "" } {
verbose -log "$rv"
fail "$testcase (compile)"