aboutsummaryrefslogtreecommitdiff
path: root/stdlib/tst-fmtmsg.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /stdlib/tst-fmtmsg.c
parent0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.zip
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.bz2
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'stdlib/tst-fmtmsg.c')
-rw-r--r--stdlib/tst-fmtmsg.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/stdlib/tst-fmtmsg.c b/stdlib/tst-fmtmsg.c
index c3748d6..d5369bd 100644
--- a/stdlib/tst-fmtmsg.c
+++ b/stdlib/tst-fmtmsg.c
@@ -1,8 +1,6 @@
#include <fmtmsg.h>
#include <mcheck.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#define MM_TEST 10
@@ -14,13 +12,11 @@ main (void)
mtrace ();
- char TEST[] = "ABCD";
- if (addseverity (MM_TEST, TEST) != MM_OK)
+ if (addseverity (MM_TEST, "TEST") != MM_OK)
{
puts ("addseverity failed");
result = 1;
}
- strcpy (TEST, "TEST");
if (fmtmsg (MM_PRINT, "GLIBC:tst-fmtmsg", MM_HALT, "halt",
"should print message for MM_HALT", "GLIBC:tst-fmtmsg:1")
@@ -52,31 +48,5 @@ main (void)
!= MM_OK)
result = 1;
- if (addseverity (MM_TEST, NULL) != MM_OK)
- {
- puts ("second addseverity failed");
- result = 1;
- }
-
- if (addseverity (MM_TEST, NULL) != MM_NOTOK)
- {
- puts ("third addseverity unexpectedly succeeded");
- result = 1;
- }
-
- char *p = strdup ("TEST2");
- if (addseverity (MM_TEST, p) != MM_OK)
- {
- puts ("fourth addseverity failed");
- result = 1;
- }
- if (addseverity (MM_TEST, "TEST3") != MM_OK)
- {
- puts ("fifth addseverity failed");
- result = 1;
- }
-
- free (p);
-
return result;
}